]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
try again.
authorHolger Levsen <holger@layer-acht.org>
Sat, 17 Sep 2011 18:13:08 +0000 (20:13 +0200)
committerHolger Levsen <holger@layer-acht.org>
Sat, 17 Sep 2011 18:13:08 +0000 (20:13 +0200)
debian_build.py

index 612b703146af4a2ca71e1d85ecc1a193f9b1291b..df31a180cee624a3bacbbaa370adac29c929f964 100755 (executable)
@@ -329,7 +329,7 @@ if __name__ == '__main__':
                 stdout=subprocess.PIPE,
                 stderr=subprocess.PIPE,
                 cwd='./',
-               universal_newlines=True
+                universal_newlines=True
         )
 
         ret = git_log.wait()
@@ -354,7 +354,7 @@ if __name__ == '__main__':
 
         logger.debug('Trying to call: %s' %(' '.join(cmd)))
 
-        new_log = git_log.stdout
+        new_log = git_log.stdout.read()
 
         dch = subprocess.Popen(
                 cmd,
@@ -373,11 +373,11 @@ if __name__ == '__main__':
             )
         logger.info('debian/changelog written')
 
-        if new_log.read() == '': 
+        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.read())
+            logger.info('git log since yesterday: %s ' % new_log)
 
 
         # we need to commit here else git-buildpackage will use the existing debian/changelog...