self._required_set_names = set(["world"])
self.excluded_pkgs = InternalPackageSet()
- for x in myopts.get("--exclude", []):
+ for x in myopts.get("--exclude", "").split():
+ try:
+ x = Atom(x)
+ except portage.exception.InvalidAtom:
+ x = Atom("null/" + x)
cat = x.cp.split("/")[0]
if cat == "null":
pkgname = x.cp.split("/")[1]
parser.error("Invalid Atom(s) in --exclude parameter: '%s' (only package names and slot atoms allowed)\n" % \
(",".join(bad_atoms),))
- myoptions.exclude = exclude
-
if myoptions.fail_clean == "True":
myoptions.fail_clean = True