From: Holger Levsen Date: Sat, 17 Sep 2011 17:53:01 +0000 (+0200) Subject: debug output X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=ddb1b766e819d5f332239dd3154b0a687bb78a01;p=profitbricks%2Fjenkins-build-scripts.git debug output --- 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