From: Zac Medico Date: Tue, 26 Feb 2008 00:02:53 +0000 (-0000) Subject: Bug #211365 - Use catpkgsplit() instead of pkgsplit() on the cpv in the X-Git-Tag: v2.2_pre3~9 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2101fb768924e127e0f7b702a9a8ffe90d997e38;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). (branches/2.1.2 r9383) svn path=/main/trunk/; revision=9384 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index f8a945e9e..3c47d24fd 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -884,7 +884,8 @@ class dblink(object): self.cat = cat self.pkg = pkg self.mycpv = self.cat + "/" + self.pkg - self.mysplit = pkgsplit(self.mycpv) + self.mysplit = list(catpkgsplit(self.mycpv)[1:]) + self.mysplit[0] = "%s/%s" % (self.cat, self.mysplit[0]) self.treetype = treetype if vartree is None: from portage import db