[projects/pld-builder.new] python2.4 fix
glen
glen at pld-linux.org
Tue May 20 20:26:18 CEST 2014
commit ca296ef8152e68862bcc2b0cc6fade058d84357a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue May 20 21:25:53 2014 +0300
python2.4 fix
PLD_Builder/blacklist.py | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/PLD_Builder/blacklist.py b/PLD_Builder/blacklist.py
index fa20723..40367c2 100644
--- a/PLD_Builder/blacklist.py
+++ b/PLD_Builder/blacklist.py
@@ -28,13 +28,14 @@ class Blacklist_File:
self.blacklist_file_mtime = os.stat(path.blacklist_file)[stat.ST_MTIME]
self.blacklist = set()
status.push("reading package-blacklist")
- with open(path.blacklist_file) as f:
- for l in f:
- p = l.rstrip()
- if re.match(r"^#.*", p):
- continue
- self.blacklist.add(p)
- log.notice("blacklist added: %s" % l)
+ f = open(path.blacklist_file)
+ for l in f:
+ p = l.rstrip()
+ if re.match(r"^#.*", p):
+ continue
+ self.blacklist.add(p)
+ log.notice("blacklist added: %s" % l)
+ f.close()
status.pop()
def package(self, p):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/ca296ef8152e68862bcc2b0cc6fade058d84357a
More information about the pld-cvs-commit
mailing list