Bugfix: sometimes error goes to the STDOUT instead of STDERR in the RPM

This commit is contained in:
Bo Maryniuk 2015-10-08 15:13:29 +02:00
parent 350340dafa
commit eaa6af9898

View file

@ -434,7 +434,7 @@ def info(*packages):
if call['retcode'] != 0:
comment = ''
if 'stderr' in call:
comment += call['stderr']
comment += (call['stderr'] or call['stdout'])
raise CommandExecutionError('{0}'.format(comment))
else:
out = call['stdout']