summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-02-25 23:57:54 +0000
committerZac Medico <zmedico@gentoo.org>2008-02-25 23:57:54 +0000
commitf264300a32215efeaa69c641a58384133f5c8e6c (patch)
tree9d10d22e33650e9c77ffce4b2b82d1f5d203bb54 /pym
parent9b66f7391911cc02bc9efec2702d16d77f0d0d9f (diff)
downloadportage-f264300a32215efeaa69c641a58384133f5c8e6c.tar.gz
portage-f264300a32215efeaa69c641a58384133f5c8e6c.tar.bz2
portage-f264300a32215efeaa69c641a58384133f5c8e6c.zip
Bug #211365 - Use catpkgsplit() instead of pkgsplit() on the cpv in the
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
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index b63105cac..97e3bbf12 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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