]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add debug msg
authorRobin Wittler <robin.wittler@profitbricks.com>
Tue, 9 Aug 2011 16:32:21 +0000 (18:32 +0200)
committerRobin Wittler <robin.wittler@profitbricks.com>
Tue, 9 Aug 2011 16:32:21 +0000 (18:32 +0200)
build.py

index 9f574c133451400da1d32a36a9737cd47324ee72..8152b187fdc1ddbe4f9f21476b241d7a4201a219 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -273,11 +273,12 @@ if __name__ == '__main__':
         pb_version = fh.read().rstrip()
         fh.close()
 
-    fh2 = open('debian/control')
-    for line in fh2:
+    fh = open('debian/control')
+    logger.debug(fh)
+    for line in fh:
         if line.startswith('Source:'):
             pkg_name = line.split(':')[-1].lstrip().rstrip()
-            fh2.close()
+            fh.close()
 
     if options.distribution in ('unstable', 'experimental'):
         daily_date = datetime.datetime.now().strftime('%Y%m%d-%H%M%S')