diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-18 21:57:12 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-18 21:57:12 +0000 |
commit | c9ca6d6c6e5117ea85d844961c38048e380de25b (patch) | |
tree | 32a6b7a801ed389287d33f62297bb7457cd0e322 | |
parent | 230cb7ccfc27407947daa98a12698d95d7497d29 (diff) | |
download | portage-c9ca6d6c6e5117ea85d844961c38048e380de25b.tar.gz portage-c9ca6d6c6e5117ea85d844961c38048e380de25b.tar.bz2 portage-c9ca6d6c6e5117ea85d844961c38048e380de25b.zip |
Make config.features a set instead of a list.
svn path=/main/trunk/; revision=13134
-rwxr-xr-x | bin/ebuild | 5 | ||||
-rw-r--r-- | pym/portage/__init__.py | 9 |
2 files changed, 6 insertions, 8 deletions
diff --git a/bin/ebuild b/bin/ebuild index a18f257a7..05ba86c03 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -186,9 +186,8 @@ if "test" in pargs: tmpsettings["EBUILD_FORCE_TEST"] = "1" tmpsettings.backup_changes("EBUILD_FORCE_TEST") if "test" not in tmpsettings.features: - tmpsettings.features.append("test") - tmpsettings.features.sort() - tmpsettings["FEATURES"] = " ".join(tmpsettings.features) + tmpsettings.features.add("test") + tmpsettings["FEATURES"] = " ".join(sorted(tmpsettings.features)) tmpsettings.backup_changes("FEATURES") if opts.skip_manifest: diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 705c1f337..100299482 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -1788,8 +1788,7 @@ class config(object): if "usersandbox" in self.features: self.features.remove("usersandbox") - self.features.sort() - self["FEATURES"] = " ".join(self.features) + self["FEATURES"] = " ".join(sorted(self.features)) self.backup_changes("FEATURES") self._init_dirs() @@ -2803,8 +2802,8 @@ class config(object): myflags.add(var_lower + "_" + x) if not hasattr(self, "features"): - self.features = sorted(set( - self.configlist[-1].get("FEATURES","").split())) + self.features = set( + self.configlist[-1].get("FEATURES","").split()) self["FEATURES"] = " ".join(self.features) myflags.update(self.useforce) @@ -6162,7 +6161,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, return 1 # qmerge is a special phase that implies noclean. if "noclean" not in mysettings.features: - mysettings.features.append("noclean") + mysettings.features.add("noclean") #qmerge is specifically not supposed to do a runtime dep check retval = merge( mysettings["CATEGORY"], mysettings["PF"], mysettings["D"], |