diff options
-rw-r--r-- | pym/_emerge/depgraph.py | 2 | ||||
-rw-r--r-- | pym/_emerge/main.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 9687ef52..728ced29 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -94,7 +94,7 @@ class _frozen_depgraph_config(object): 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: diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 9f7a20da..5422d32b 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -565,7 +565,7 @@ def parse_opts(tmpcmdline, silent=False): "Emerge won't install any ebuild or binary package that " + \ "matches any of the given package atoms.", - "action" : "store" + "action" : "append" }, "--fail-clean": { @@ -735,7 +735,7 @@ def parse_opts(tmpcmdline, silent=False): 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) |