Make the world-candidate package set attribute default to False, since
authorZac Medico <zmedico@gentoo.org>
Tue, 27 Jul 2010 20:19:00 +0000 (13:19 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 Jul 2010 20:19:00 +0000 (13:19 -0700)
[usersets] is the only one for which it is True in the default config.

cnf/sets/portage.conf
doc/config/sets.docbook
pym/portage/sets/__init__.py
pym/portage/sets/base.py

index 87280cef631eb83ba0db6cf57c90e0017e139020..2a66512e7391f6f8364ecdead5be8f8198d199c6 100644 (file)
@@ -7,18 +7,15 @@
 # Not much that could be changed for world, so better leave it alone
 [world]
 class = portage.sets.base.DummyPackageSet
-world-candidate = False
 packages = @selected @system
 
 # Not much that could be changed for world, so better leave it alone
 [selected]
 class = portage.sets.files.WorldSelectedSet
-world-candidate = False
 
 # Same as for world, though later portage versions might use a different class
 [system]
 class = portage.sets.profiles.PackagesSystemSet
-world-candidate = False
 
 # For security there are multiple classes available, but differences are 
 # rather small (normally there should be no visible difference):
@@ -29,7 +26,6 @@ world-candidate = False
 # - SecuritySet: include all GLSAs
 [security]
 class = portage.sets.security.NewAffectedSet
-world-candidate = False
 
 # A superset of the classic <parameter>world</parameter> target, a set created
 # by this class contains SLOT atoms to match all installed packages. Note that
@@ -37,7 +33,6 @@ world-candidate = False
 # uninstallation of blocked packages.
 [installed]
 class = portage.sets.dbapi.EverythingSet
-world-candidate = False
 
 # The following treats all files in /etc/portage/sets as a package set called
 # '$filename'.
@@ -45,40 +40,35 @@ world-candidate = False
 class = portage.sets.files.StaticFileSet
 multiset = true
 directory =  %(PORTAGE_CONFIGROOT)setc/portage/sets
+world-candidate = True
 
 # Set to rebuild all packages that need a preserved lib that only remains due
 # to FEATURES=preserve-libs
 [preserved-rebuild]
 class = portage.sets.libs.PreservedLibraryConsumerSet
-world-candidate = False
 
 # Installed ebuilds that inherit from known live eclasses.
 [live-rebuild]
 class = portage.sets.dbapi.VariableSet
-world-candidate = False
 variable = INHERITED
 includes = bzr cvs darcs git mercurial subversion tla
 
 # Installed packages that own files inside /lib/modules.
 [module-rebuild]
 class = portage.sets.dbapi.OwnerSet
-world-candidate = False
 files = %(ROOT)slib/modules
 
 # Binary packages that have a different build time from a currently
 # installed package of the exact same version.
 [rebuilt-binaries]
 class = portage.sets.dbapi.RebuiltBinaries
-world-candidate = False
 
 # Installed packages for which the highest visible ebuild
 # version is lower than the currently installed version.
 [downgrade]
 class = portage.sets.dbapi.DowngradeSet
-world-candidate = False
 
 # Installed packages for which there are no visible ebuilds
 # corresponding to the same $CATEGORY/$PN:$SLOT.
 [unavailable]
 class = portage.sets.dbapi.UnavailableSet
-world-candidate = False
index edded8937a41c55473c7e61dd915241ddc0ef111..866261f3f4c3c2e7f344726f7ce5a20eaf8c6d5b 100644 (file)
                        # The classic world set
                        [world]
                        class = portage.sets.base.DummyPackageSet
-                       world-candidate = False
                        packages = @selected @system
 
                        # The selected set
                        [selected]
                        class = portage.sets.files.WorldSelectedSet
-                       world-candidate = False
 
                        # The classic system set
                        [system]
index ab9869cee796b9f2cadde329c09d2cd9ce8d6ea7..dc6661480fb91e68a630dc84a159bfb363efa3bc 100644 (file)
@@ -113,8 +113,8 @@ class SetConfig(object):
                                                        self.errors.append(_("Redefinition of set '%s' (sections: '%s', '%s')") % (x, self.psets[x].creator, sname))
                                                newsets[x].creator = sname
                                                if parser.has_option(sname, "world-candidate") and \
-                                                       not parser.getboolean(sname, "world-candidate"):
-                                                       newsets[x].world_candidate = False
+                                                       parser.getboolean(sname, "world-candidate"):
+                                                       newsets[x].world_candidate = True
                                        self.psets.update(newsets)
                                else:
                                        self.errors.append(_("Section '%(section)s' is configured as multiset, but '%(class)s' "
@@ -132,8 +132,8 @@ class SetConfig(object):
                                                self.psets[setname] = setclass.singleBuilder(optdict, self.settings, self.trees)
                                                self.psets[setname].creator = sname
                                                if parser.has_option(sname, "world-candidate") and \
-                                                       not parser.getboolean(sname, "world-candidate"):
-                                                       self.psets[setname].world_candidate = False
+                                                       parser.getboolean(sname, "world-candidate"):
+                                                       self.psets[setname].world_candidate = True
                                        except SetConfigError as e:
                                                self.errors.append(_("Configuration error in section '%s': %s") % (sname, str(e)))
                                                continue
index f54c5436f5d775521d6cac70a360a7bd44de192c..f2e74515777ebcc8b0c4f0872d43f77828da0ad3 100644 (file)
@@ -26,7 +26,7 @@ class PackageSet(object):
                self._loading = False
                self.errors = []
                self._nonatoms = set()
-               self.world_candidate = True
+               self.world_candidate = False
 
        def __contains__(self, atom):
                self._load()