From ddb1b766e819d5f332239dd3154b0a687bb78a01 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 17 Sep 2011 19:53:01 +0200 Subject: [PATCH] debug output --- debian_build.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/debian_build.py b/debian_build.py index a3dd089..88be310 100755 --- a/debian_build.py +++ b/debian_build.py @@ -354,11 +354,13 @@ if __name__ == '__main__': logger.debug('Trying to call: %s' %(' '.join(cmd))) + new_log = git_log.stdout + dch = subprocess.Popen( cmd, shell=False, close_fds=True, - stdin=git_log.stdout, + stdin=new_log, stdout=sys.stdout, stderr=sys.stderr, cwd=os.getcwd() @@ -371,9 +373,12 @@ if __name__ == '__main__': ) logger.info('debian/changelog written') - if git_log.stdout == '': + if new_log == '': logger.info('git log since yesterday is empty, aborting build.') sys.exit(0) + else: + logger.info('git log since yesterday: %s ' % new_log) + # we need to commit here else git-buildpackage will use the existing debian/changelog... # TODO: Later we should investigate why the "--ignore-new" trick -- 2.39.5