mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-24 06:01:25 +00:00
hotfix: repair returncode catch
This commit is contained in:
parent
417a969736
commit
8a8fe26b95
@ -81,7 +81,7 @@ class Import:
|
|||||||
]
|
]
|
||||||
command_to_send = ' '.join(command_to_send)
|
command_to_send = ' '.join(command_to_send)
|
||||||
returned = processor.run_proc_no_output_shell(command_to_send)
|
returned = processor.run_proc_no_output_shell(command_to_send)
|
||||||
if returned != 0:
|
if returned.returncode != 0:
|
||||||
rpmerr = returned.stderr
|
rpmerr = returned.stderr
|
||||||
raise err.RpmOpenError(f'This package could not be unpacked:\n\n{rpmerr}')
|
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)
|
command_to_send = ' '.join(command_to_send)
|
||||||
returned = processor.run_proc_no_output_shell(command_to_send)
|
returned = processor.run_proc_no_output_shell(command_to_send)
|
||||||
if returned != 0:
|
if returned.returncode != 0:
|
||||||
rpmerr = returned.stderr
|
rpmerr = returned.stderr
|
||||||
raise err.RpmBuildError(f'There was error packing the rpm:\n\n{rpmerr}')
|
raise err.RpmBuildError(f'There was error packing the rpm:\n\n{rpmerr}')
|
||||||
wrote_regex = r'Wrote:\s+(.*\.rpm)'
|
wrote_regex = r'Wrote:\s+(.*\.rpm)'
|
||||||
|
Loading…
Reference in New Issue
Block a user