From: Zac Medico Date: Mon, 25 Feb 2008 23:57:54 +0000 (-0000) Subject: Bug #211365 - Use catpkgsplit() instead of pkgsplit() on the cpv in the X-Git-Tag: v2.1.5~374 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f264300a32215efeaa69c641a58384133f5c8e6c;p=portage.git 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 --- 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