hotfix: repair returncode catch

This commit is contained in:
Louis Abel 2023-07-13 21:54:24 -07:00
parent 417a969736
commit 8a8fe26b95
Signed by: label
GPG Key ID: 3331F061D1D9990E

View File

@ -81,7 +81,7 @@ class Import:
]
command_to_send = ' '.join(command_to_send)
returned = processor.run_proc_no_output_shell(command_to_send)
if returned != 0:
if returned.returncode != 0:
rpmerr = returned.stderr
raise err.RpmOpenError(f'This package could not be unpacked:\n\n{rpmerr}')
@ -106,7 +106,7 @@ class Import:
]
command_to_send = ' '.join(command_to_send)
returned = processor.run_proc_no_output_shell(command_to_send)
if returned != 0:
if returned.returncode != 0:
rpmerr = returned.stderr
raise err.RpmBuildError(f'There was error packing the rpm:\n\n{rpmerr}')
wrote_regex = r'Wrote:\s+(.*\.rpm)'