]> 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:28:43 +0000 (18:28 +0200)
committerRobin Wittler <robin.wittler@profitbricks.com>
Tue, 9 Aug 2011 16:28:43 +0000 (18:28 +0200)
build.py

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