+["package_"+x for x in ["mask", "unmask", "use", "keywords"]]
del x
+__all__ = ["PackageSet", "EditablePackageSet", "InternalPackageSet", \
+ "SetConfigError", "SetConfig", "make_default_config"]
+
class PackageSet(object):
# Set this to operations that are supported by your subclass. While
# technically there is no difference between "merge" and "unmerge" regarding
import portage
sc = make_default_config(portage.settings, portage.db["/"])
l, e = sc.getSets()
- print l, e
for x in l:
print x+":"
print "DESCRIPTION = %s" % l[x].getMetadata("Description")
from portage.versions import catsplit
from portage.sets import PackageSet, SetConfigError
+__all__ = ["CategorySet", "EverythingSet"]
+
class EverythingSet(PackageSet):
_operations = ["merge", "unmerge"]
description = "Package set containing all installed packages"
from portage.env.loaders import ItemFileLoader, KeyListFileLoader
from portage.env.validators import ValidAtomValidator
+__all__ = ["StaticFileSet", "ConfigFileSet", "WorldSet"]
+
class StaticFileSet(EditablePackageSet):
_operations = ["merge", "unmerge"]
from portage.util import grabfile_package, stack_lists
from portage.sets import PackageSet
+__all__ = ["PackagesSystemSet"]
+
class PackagesSystemSet(PackageSet):
_operations = ["merge"]
from portage.const import CACHE_PATH
from portage.sets import PackageSet
+__all__ = ["SecuritySet", "NewGlsaSet", "NewAffectedSet", "AffectedSet"]
+
class SecuritySet(PackageSet):
_operations = ["merge"]
_skip_applied = False
from portage.sets import PackageSet, SetConfigError
+__all__ = ["CommandOutputSet"]
+
class CommandOutputSet(PackageSet):
"""This class creates a PackageSet from the output of a shell command.
The shell command should produce one atom per line, that is: