Bug #211365 - Use catpkgsplit() instead of pkgsplit() on the cpv in the
authorZac Medico <zmedico@gentoo.org>
Mon, 25 Feb 2008 23:57:54 +0000 (23:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 25 Feb 2008 23:57:54 +0000 (23:57 -0000)
dblink constructor since otherwise weird categories containing numbers
can make pkgsplit() return None (likely related to version regex handling).

svn path=/main/branches/2.1.2/; revision=9383

pym/portage.py

index b63105cace78ad20d31054a764ea529e24c5ae47..97e3bbf12ab33f0eec932707bfb4e28b9cd503f6 100644 (file)
@@ -8004,7 +8004,8 @@ class dblink:
                self.cat     = cat
                self.pkg     = pkg
                self.mycpv   = self.cat+"/"+self.pkg
-               self.mysplit = pkgsplit(self.mycpv)
+               self.mysplit = catpkgsplit(self.mycpv)[1:]
+               self.mysplit[0] = "%s/%s" % (self.cat, self.mysplit[0])
                self.treetype = treetype
                if vartree is None:
                        global db