From: Zac Medico Date: Wed, 5 May 2010 07:23:34 +0000 (-0700) Subject: Make myopts["--exclude"] a plain string in order to avoid issues with mtimedb X-Git-Tag: v2.2_rc68~615 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=55edc9751fd580c73d5430800de6f4c34e8730e8;p=portage.git Make myopts["--exclude"] a plain string in order to avoid issues with mtimedb unpickling. --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 3164e339e..79fa508a1 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -94,7 +94,11 @@ class _frozen_depgraph_config(object): 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] diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 66c6e037a..9f7a20da5 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -757,8 +757,6 @@ def parse_opts(tmpcmdline, silent=False): 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