summaryrefslogtreecommitdiffstats
path: root/pym/portage/_sets/__init__.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-06-22 16:49:46 -0700
committerZac Medico <zmedico@gentoo.org>2012-06-22 16:49:46 -0700
commitc5142aadedee5b1917607f10d5018b763ef2419b (patch)
treea3487b3dd4931e13c6cad556cf09064f24a073d5 /pym/portage/_sets/__init__.py
parentd1a59831eb2a5205d050884c760cca1d73be8fdf (diff)
downloadportage-c5142aadedee5b1917607f10d5018b763ef2419b.tar.gz
portage-c5142aadedee5b1917607f10d5018b763ef2419b.tar.bz2
portage-c5142aadedee5b1917607f10d5018b763ef2419b.zip
Enable /etc/portage/sets for stable, bug #384061.
Diffstat (limited to 'pym/portage/_sets/__init__.py')
-rw-r--r--pym/portage/_sets/__init__.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/pym/portage/_sets/__init__.py b/pym/portage/_sets/__init__.py
index 88a4b3b1b..c3b590e92 100644
--- a/pym/portage/_sets/__init__.py
+++ b/pym/portage/_sets/__init__.py
@@ -1,4 +1,4 @@
-# Copyright 2007-2011 Gentoo Foundation
+# Copyright 2007-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
from __future__ import print_function
@@ -111,16 +111,26 @@ class SetConfig(object):
"""
parser = self._parser
+ parser.remove_section("world")
parser.add_section("world")
parser.set("world", "class", "portage.sets.base.DummyPackageSet")
parser.set("world", "packages", "@selected @system")
+ parser.remove_section("selected")
parser.add_section("selected")
parser.set("selected", "class", "portage.sets.files.WorldSelectedSet")
+ parser.remove_section("system")
parser.add_section("system")
parser.set("system", "class", "portage.sets.profiles.PackagesSystemSet")
+ parser.remove_section("usersets")
+ parser.add_section("usersets")
+ parser.set("usersets", "class", "portage.sets.files.StaticFileSet")
+ parser.set("usersets", "multiset", "true")
+ parser.set("usersets", "directory", "%(PORTAGE_CONFIGROOT)setc/portage/sets")
+ parser.set("usersets", "world-candidate", "true")
+
def update(self, setname, options):
parser = self._parser
self.errors = []