]> git.ipfire.org Git - pakfire.git/commitdiff
Add a workaround for broken virtual perl dependencies.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Feb 2011 21:59:45 +0000 (22:59 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Feb 2011 21:59:45 +0000 (22:59 +0100)
pakfire/depsolve.py

index cdbe40c1560cfa28179e1abd2351c87450b2d8ee..30e1b8feeb3b1242d440e8d1fea19e9a4c971547 100644 (file)
@@ -101,6 +101,10 @@ class DependencySet(object):
                        self.add_package(pkg)
 
        def add_requires(self, requires, pkg=None):
+               # XXX for now, we skip the virtual perl requires
+               if requires.startswith("perl(") or requires.startswith("perl>") or requires.startswith("perl="):
+                       return
+
                requires = Requires(pkg, requires)
 
                if requires in self.__requires: