cwd='/',
close_fds=True,
stdout=sys.stdout,
- stderr=sys.stderr,
+ stderr=subprocess.STDOUT,
env={'':''}
)
logger.debug('Calling "%s" ..' %(' '.join(cmd)))
ret = cmdobj.wait()
+ for line in ret.stdout.readlines():
+ logger.debug('%s' %(line))
+
if ret:
_str = (
- 'Cmd "%s" returned non-zero (exitcode: %s).'
- %(' '.join(cmd), ret)
+ 'Cmd "%s" returned non-zero (exitcode: %s).'
+ %(' '.join(cmd), ret)
)
logger.debug(_str)
raise Exception(_str)
- files = fnmatch.filter(os.listdir('../build-area/'),'*.orig.tar.gz')
+ files = [os.path.join('../build-area/',file) for file in fnmatch.filter(os.listdir('../build-area/'),'*.orig.tar.gz')]
logger.debug('Previous upstream tarball(s) found: %s' %( files ))