]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
use readlines
authorHolger Levsen <holger@layer-acht.org>
Tue, 25 Oct 2011 18:42:22 +0000 (20:42 +0200)
committerHolger Levsen <holger@layer-acht.org>
Tue, 25 Oct 2011 18:42:22 +0000 (20:42 +0200)
debian_build.py

index cb6e2ad387403dfb8f47596a01d03847592600db..5c83d6cabc2e18c92d49ba61bd9381229498ace2 100755 (executable)
@@ -485,7 +485,7 @@ if __name__ == '__main__':
             time.sleep(60) # give reprepro time to process
             FLAVOURS_FILE=os.path.join(GIT_TARGET_WORKSPACE, GIT_REPO_NAME, "debian/pb_flavours")
             fh = open(FLAVOURS_FILE, 'r')
-            for flavour in fh():
+            for flavour in fh.readlines():
                 cmd = ['%s' % os.path.join(CWD, "build-oot.sh"),
                        '%s' % JOB_NAME,
                        '%s' % flavour,