]> TLD Linux GIT Repositories - tld-builder.git/blobdiff - TLD_Builder/util.py
- merged PLD changes, now it works with python 3.x
[tld-builder.git] / TLD_Builder / util.py
index b623115d7f2e407e3fe30d69e66a97bfe4a7b32f..b4c859944cd447ff4a201336e28e7ae98717f3f3 100644 (file)
@@ -52,9 +52,9 @@ def clean_tmp(dir):
 def collect_files(log, basedir = "/home"):
     f = open(log, 'r')
     rx = re.compile(r"^Wrote: (%s.*\.rpm)$" % basedir)
-    proc = re.compile(r"^Processing (files):.*$")
+    proc = re.compile(r"^Processing files:.*$")
     files = []
-    for l in reversed(list(f.xreadlines())):
+    for l in reversed(list(f)):
         if proc.match(l):
             break
         m = rx.search(l)