From 2101fb768924e127e0f7b702a9a8ffe90d997e38 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 26 Feb 2008 00:02:53 +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). (branches/2.1.2 r9383) svn path=/main/trunk/; revision=9384 --- pym/portage/dbapi/vartree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-1-g7c22