more logging about command status

This commit is contained in:
lilydjwg 2012-12-15 18:01:05 +08:00
parent db2bf1c2ce
commit 43172df402

View file

@ -76,6 +76,9 @@ class RepoMan:
if status == 0 and callbacks:
for cb in callbacks:
cb()
logging.info('previous command done.')
else:
logging.warn('previous command failed with status code %d.', status)
self.run_command()
def _do_cmd(self, cmd, items, callbacks):