# cleanup existing *orig.tar.gz
if os.path.isdir('../build-area/'):
- files = " ".join(fnmatch.filter(os.listdir('../build-area/'),'*.orig.tar.gz'))
- cmd = [BIN_SUDO, BIN_RM, '-f', files]
+ files = fnmatch.filter(os.listdir('../build-area/'),'*.orig.tar.gz')
+ logger.debug('Previous upstream tarball(s) found: %s' %( files ))
+ cmd = [BIN_SUDO, BIN_RM, '-f', " ".join(files)]
cmdobj = subprocess.Popen(
cmd,
shell=False,
env={'':''}
)
- logger.debug(
- 'Trying to call "%s"'
- %(' '.join(cmd))
- )
-
+ logger.debug('Calling "%s" ..' %(' '.join(cmd)))
ret = cmdobj.wait()
if ret:
_str = (
logger.debug(_str)
raise Exception(_str)
+ files = fnmatch.filter(os.listdir('../build-area/'),'*.orig.tar.gz')
+ logger.debug('Previous upstream tarball(s) found: %s' %( files ))
+
logger.info('dist: %s' %(pb_suite))
cmd = ['figlet-figlet', '-t', 'dist: %s' %(pb_suite)]