Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r10267 - main/branches/2.1.2/bin
Date: Fri, 09 May 2008 08:46:08
Message-Id: E1JuOEv-0008Ak-Dz@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-05-09 08:46:04 +0000 (Fri, 09 May 2008)
3 New Revision: 10267
4
5 Modified:
6 main/branches/2.1.2/bin/emerge
7 Log:
8 Simplify code for derived Package attributes. (trunk r10266)
9
10
11 Modified: main/branches/2.1.2/bin/emerge
12 ===================================================================
13 --- main/branches/2.1.2/bin/emerge 2008-05-09 08:45:05 UTC (rev 10266)
14 +++ main/branches/2.1.2/bin/emerge 2008-05-09 08:46:04 UTC (rev 10267)
15 @@ -1427,10 +1427,8 @@
16 self.cp = portage.cpv_getkey(self.cpv)
17 self.slot_atom = "%s:%s" % (self.cp, self.metadata["SLOT"])
18 self.cpv_slot = "%s:%s" % (self.cpv, self.metadata["SLOT"])
19 - cpv_parts = portage.catpkgsplit(self.cpv)
20 - self.category = cpv_parts[0]
21 - self.pv_split = cpv_parts[1:]
22 - self.pf = self.cpv.replace(self.category + "/", "", 1)
23 + self.category, self.pf = portage.catsplit(self.cpv)
24 + self.pv_split = portage.catpkgsplit(self.cpv)[1:]
25
26 def _get_hash_key(self):
27 hash_key = getattr(self, "_hash_key", None)
28
29 --
30 gentoo-commits@l.g.o mailing list