From c9d7a86960aba51c820ec1bb11142531764f7730 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 4 May 2010 14:30:42 -0700 Subject: Make --exclude use whitespace to separate atoms since atoms are typically separated by whitespace. --- man/emerge.1 | 2 +- pym/_emerge/help.py | 2 +- pym/_emerge/main.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/man/emerge.1 b/man/emerge.1 index a0ba4b70..26df2514 100644 --- a/man/emerge.1 +++ b/man/emerge.1 @@ -360,7 +360,7 @@ installed. You should run this with \fB\-\-pretend\fR first to make sure the result is what you expect. .TP .BR "\-\-exclude " ATOMS -A comma separated list of package names or slot atoms. +A space separated list of package names or slot atoms. Emerge won't install any ebuild or binary package that matches any of the given package atoms. .TP diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py index bf95a05e..e803bd89 100644 --- a/pym/_emerge/help.py +++ b/pym/_emerge/help.py @@ -379,7 +379,7 @@ def help(myopts, havecolor=1): print(desc_indent + line) print() print(" " + green("--exclude") + " " + turquoise("ATOMS")) - desc = "A comma separated list of package names or slot atoms. " + \ + desc = "A space separated list of package names or slot atoms. " + \ "Emerge won't install any ebuild or binary package that " + \ "matches any of the given package atoms." for line in wrap(desc, desc_width): diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index d5d364b2..66c6e037 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -561,7 +561,7 @@ def parse_opts(tmpcmdline, silent=False): }, "--exclude": { - "help" :"A comma separated list of package names or slot atoms. " + \ + "help" :"A space separated list of package names or slot atoms. " + \ "Emerge won't install any ebuild or binary package that " + \ "matches any of the given package atoms.", @@ -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 myoptions.exclude.split(): bad_atom = False try: atom = portage.dep.Atom(x) -- cgit v1.2.3-65-gdbad