From f264300a32215efeaa69c641a58384133f5c8e6c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 25 Feb 2008 23:57:54 +0000 Subject: 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 --- pym/portage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pym') 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 -- cgit v1.2.3-1-g7c22