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

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