Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r9384 - main/trunk/pym/portage/dbapi
Date: Tue, 26 Feb 2008 00:02:58
Message-Id: E1JTnHa-0004Dc-Hn@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-02-26 00:02:53 +0000 (Tue, 26 Feb 2008)
3 New Revision: 9384
4
5 Modified:
6 main/trunk/pym/portage/dbapi/vartree.py
7 Log:
8 Bug #211365 - Use catpkgsplit() instead of pkgsplit() on the cpv in the
9 dblink constructor since otherwise weird categories containing numbers
10 can make pkgsplit() return None (likely related to version regex handling).
11 (branches/2.1.2 r9383)
12
13
14 Modified: main/trunk/pym/portage/dbapi/vartree.py
15 ===================================================================
16 --- main/trunk/pym/portage/dbapi/vartree.py 2008-02-25 23:57:54 UTC (rev 9383)
17 +++ main/trunk/pym/portage/dbapi/vartree.py 2008-02-26 00:02:53 UTC (rev 9384)
18 @@ -884,7 +884,8 @@
19 self.cat = cat
20 self.pkg = pkg
21 self.mycpv = self.cat + "/" + self.pkg
22 - self.mysplit = pkgsplit(self.mycpv)
23 + self.mysplit = list(catpkgsplit(self.mycpv)[1:])
24 + self.mysplit[0] = "%s/%s" % (self.cat, self.mysplit[0])
25 self.treetype = treetype
26 if vartree is None:
27 from portage import db
28
29 --
30 gentoo-commits@l.g.o mailing list