* [gentoo-commits] portage r11579 - main/branches/prefix/pym/portage
@ 2008-09-28 12:13 Fabian Groffen (grobian)
0 siblings, 0 replies; only message in thread
From: Fabian Groffen (grobian) @ 2008-09-28 12:13 UTC (permalink / raw
To: gentoo-commits
Author: grobian
Date: 2008-09-28 12:13:55 +0000 (Sun, 28 Sep 2008)
New Revision: 11579
Modified:
main/branches/prefix/pym/portage/__init__.py
Log:
Fix up messing around with lists, sets and frozen sets
Modified: main/branches/prefix/pym/portage/__init__.py
===================================================================
--- main/branches/prefix/pym/portage/__init__.py 2008-09-28 11:08:30 UTC (rev 11578)
+++ main/branches/prefix/pym/portage/__init__.py 2008-09-28 12:13:55 UTC (rev 11579)
@@ -4621,9 +4621,9 @@
eapi = str(eapi).split() # note Python's contact for this special case
# these are the properties that MUST be present (should)
- properties = []
+ properties = set()
if portage.const.EAPIPREFIX:
- properties.append(portage.const.EAPIPREFIX) # clumpsy temporary solution
+ properties.add(portage.const.EAPIPREFIX) # clumpsy temporary solution
for prop in properties:
if prop not in eapi:
@@ -4632,9 +4632,9 @@
eapi.remove(prop)
# now check if what's left is supported (can)
- properties = _deprecated_eapis[:] # another clumpsy solution
+ properties = set(_deprecated_eapis) # another clumpsy solution
for i in range(portage.const.EAPI + 1):
- properties.append(str(i))
+ properties.add(str(i))
for v in eapi:
if v not in properties:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-28 12:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 12:13 [gentoo-commits] portage r11579 - main/branches/prefix/pym/portage Fabian Groffen (grobian)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox