From 0c220ab3d870f0f6be39cedaf395023551f6244d Mon Sep 17 00:00:00 2001 From: Robin Wittler Date: Tue, 9 Aug 2011 18:26:59 +0200 Subject: [PATCH] add debug msg --- build.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/build.py b/build.py index 44a064e..d1cd802 100755 --- a/build.py +++ b/build.py @@ -273,16 +273,16 @@ if __name__ == '__main__': pb_version = fh.read().rstrip() fh.close() + fh = open('debian/control') + for line in fh: + if line.startswith('Source:'): + pkg_name = line.split(':')[-1].lstrip().rstrip() + fh.close() + if options.distribution in ('unstable', 'experimental'): daily_date = datetime.datetime.now().strftime('%Y%m%d-%H%M%S') version = '%s-%s' %(pb_version, daily_date) os.unlink('debian/changelog') - fh = open('debian/control') - for line in fh: - if line.startswith('Source:'): - pkg_name = line.split(':')[-1].lstrip().rstrip() - fh.close() - cmd = ['/usr/bin/git', 'log'] git_log = subprocess.Popen( cmd, @@ -316,8 +316,6 @@ if __name__ == '__main__': '%s' %(git_log_output) ] - logger.debug('This is cwd: %s' %(os.getcwd())) - logger.debug(os.listdir('./')) logger.debug('Trying to call: %s' %(cmd)) dch = subprocess.Popen( @@ -367,6 +365,7 @@ if __name__ == '__main__': 'This is the output of git-buildpackage: \n%s' %(ret) ) + logger.debug(os.listdir()) #create_dput_cfg() #dput_package_upload() -- 2.39.5