Add error check when retcode is 0, but stderr is present

This commit is contained in:
rallytime 2016-02-23 17:26:52 -07:00
parent 294371243d
commit 47cc7c3466

View file

@ -485,6 +485,8 @@ def info(*packages, **attr):
if 'stderr' in call:
comment += (call['stderr'] or call['stdout'])
raise CommandExecutionError('{0}'.format(comment))
elif 'error' in call['stderr']:
raise CommandExecutionError(call['stderr'])
else:
out = call['stdout']