]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debug output
authorHolger Levsen <holger@layer-acht.org>
Sat, 17 Sep 2011 17:53:01 +0000 (19:53 +0200)
committerHolger Levsen <holger@layer-acht.org>
Sat, 17 Sep 2011 17:53:01 +0000 (19:53 +0200)
debian_build.py

index a3dd0895ef462ee65a31dcb506cb166eff8851dc..88be3103318770660500a706ea9cdaf002b0df3c 100755 (executable)
@@ -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