From 71da08f4e4fbaebae284bb727939ebacdd9fef56 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 25 Oct 2011 20:42:22 +0200 Subject: [PATCH] use readlines --- debian_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian_build.py b/debian_build.py index cb6e2ad..5c83d6c 100755 --- a/debian_build.py +++ b/debian_build.py @@ -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, -- 2.39.5