Instead of relying on user to provide the whole exclude list as a
space-separated list in a single argument (which is uncomfortable),
allow him/her to specify '--exclude' multiple times, joining the
provided atom lists together.
self._required_set_names = set(["world"])
self.excluded_pkgs = InternalPackageSet()
- for x in myopts.get("--exclude", "").split():
+ for x in ' '.join(myopts.get("--exclude", [])).split():
try:
x = Atom(x)
except portage.exception.InvalidAtom:
"Emerge won't install any ebuild or binary package that " + \
"matches any of the given package atoms.",
- "action" : "store"
+ "action" : "append"
},
"--fail-clean": {
if myoptions.exclude:
exclude = []
bad_atoms = []
- for x in myoptions.exclude.split():
+ for x in ' '.join(myoptions.exclude).split():
bad_atom = False
try:
atom = portage.dep.Atom(x)