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

index 88be3103318770660500a706ea9cdaf002b0df3c..612b703146af4a2ca71e1d85ecc1a193f9b1291b 100755 (executable)
@@ -373,11 +373,11 @@ if __name__ == '__main__':
             )
         logger.info('debian/changelog written')
 
-        if new_log == '': 
+        if new_log.read() == '': 
             logger.info('git log since yesterday is empty, aborting build.')
             sys.exit(0)
         else:
-            logger.info('git log since yesterday: %s ' % new_log)
+            logger.info('git log since yesterday: %s ' % new_log.read())
 
 
         # we need to commit here else git-buildpackage will use the existing debian/changelog...