Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11579 - main/branches/prefix/pym/portage
Date: Sun, 28 Sep 2008 12:13:58
Message-Id: E1Kjv9w-00055e-5G@stork.gentoo.org
1 Author: grobian
2 Date: 2008-09-28 12:13:55 +0000 (Sun, 28 Sep 2008)
3 New Revision: 11579
4
5 Modified:
6 main/branches/prefix/pym/portage/__init__.py
7 Log:
8 Fix up messing around with lists, sets and frozen sets
9
10 Modified: main/branches/prefix/pym/portage/__init__.py
11 ===================================================================
12 --- main/branches/prefix/pym/portage/__init__.py 2008-09-28 11:08:30 UTC (rev 11578)
13 +++ main/branches/prefix/pym/portage/__init__.py 2008-09-28 12:13:55 UTC (rev 11579)
14 @@ -4621,9 +4621,9 @@
15 eapi = str(eapi).split() # note Python's contact for this special case
16
17 # these are the properties that MUST be present (should)
18 - properties = []
19 + properties = set()
20 if portage.const.EAPIPREFIX:
21 - properties.append(portage.const.EAPIPREFIX) # clumpsy temporary solution
22 + properties.add(portage.const.EAPIPREFIX) # clumpsy temporary solution
23
24 for prop in properties:
25 if prop not in eapi:
26 @@ -4632,9 +4632,9 @@
27 eapi.remove(prop)
28
29 # now check if what's left is supported (can)
30 - properties = _deprecated_eapis[:] # another clumpsy solution
31 + properties = set(_deprecated_eapis) # another clumpsy solution
32 for i in range(portage.const.EAPI + 1):
33 - properties.append(str(i))
34 + properties.add(str(i))
35
36 for v in eapi:
37 if v not in properties: