]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- get by name not number
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 8 Apr 2009 12:05:47 +0000 (12:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/install.py -> 1.16

PLD_Builder/install.py

index 88c14ff17445ece36d3c78c7bfb6259b26bbd39e..25924c3191515c203b44e5732ac62094bee6ea22 100644 (file)
@@ -152,12 +152,12 @@ def install_br(r, b):
     b.log_line("checking conflicting packages in BRed packages")
     f = chroot.popen("poldek --test --noask --caplookup -Q -v --upgrade %s" % br, user = "root")
     # phonon-devel-4.3.1-1.i686 conflicts with qt4-phonon-devel-4.5.0-6.i686
-    rx = re.compile(r".*conflicts with( installed|) ([^\s]+)-[^-]+-[^-]+($| .*)")
+    rx = re.compile(r".*conflicts with( installed|) (?P<name>[^\s]+)-[^-]+-[^-]+($| .*)")
     conflicting = {}
     for l in f.xreadlines():
         b.log_line("poldek: %s" % l.rstrip())
         m = rx.search(l)
-        if m: conflicting[m.group(1)] = 1
+        if m: conflicting[m.group('name')] = 1
     f.close()
     if len(conflicting) == 0:
         b.log_line("no conflicts found")
This page took 0.025775 seconds and 4 git commands to generate.