mirror of
https://github.com/lilydjwg/archrepo2.git
synced 2025-03-10 12:02:43 +00:00
fix command exit code reporting
This commit is contained in:
parent
f29833ca67
commit
ee21aec66a
1 changed files with 4 additions and 3 deletions
|
@ -73,9 +73,10 @@ class RepoMan:
|
||||||
p.set_exit_callback(partial(self.command_done, callbacks))
|
p.set_exit_callback(partial(self.command_done, callbacks))
|
||||||
|
|
||||||
def command_done(self, callbacks, status):
|
def command_done(self, callbacks, status):
|
||||||
if status == 0 and callbacks:
|
if status == 0:
|
||||||
for cb in callbacks:
|
if callbacks:
|
||||||
cb()
|
for cb in callbacks:
|
||||||
|
cb()
|
||||||
logging.info('previous command done.')
|
logging.info('previous command done.')
|
||||||
else:
|
else:
|
||||||
logging.warn('previous command failed with status code %d.', status)
|
logging.warn('previous command failed with status code %d.', status)
|
||||||
|
|
Loading…
Add table
Reference in a new issue