From 615b7c61d266f395142584d7697c39713272623d Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Wed, 16 May 2012 15:16:06 +0200 Subject: [PATCH] verify tarballs have been deleted --- debian_build.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/debian_build.py b/debian_build.py index 2b787b8..cce7a2e 100755 --- a/debian_build.py +++ b/debian_build.py @@ -428,8 +428,9 @@ if __name__ == '__main__': # 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, @@ -440,11 +441,7 @@ if __name__ == '__main__': env={'':''} ) - logger.debug( - 'Trying to call "%s"' - %(' '.join(cmd)) - ) - + logger.debug('Calling "%s" ..' %(' '.join(cmd))) ret = cmdobj.wait() if ret: _str = ( @@ -454,6 +451,9 @@ if __name__ == '__main__': 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)] -- 2.39.5