]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
loop correctly
authorHolger Levsen <holger@layer-acht.org>
Thu, 1 Sep 2011 15:16:07 +0000 (17:16 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 1 Sep 2011 15:16:07 +0000 (17:16 +0200)
build.py

index a4851802d9dc8893c23f9d34e400f0d8897fd820..c84d5404a5a317b50b8eae3e075773b53e089775 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -403,8 +403,10 @@ if __name__ == '__main__':
     )
     if not ret:
         build_log=os.path.join('../build-area/result/', '%s_%s_amd64.build' % (pkg_name, version))
-        for line in read_file(build_log):
+        fh = open(build_log, 'r')
+        for line in fh.readlines():
             logger.info(line)
+        fh.close()
     #logger.debug(os.listdir('./'))
     #logger.debug(os.listdir('../'))
     create_dput_cfg()