summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-05 04:59:10 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-05 04:59:10 +0000
commit1689682296b3ad9750ca1432f1255e9798900353 (patch)
tree8ab5ae2de8822bbff179db11d87e28dde363851c
parent17a08fb7fbc37bea72e5e796498d4716ec491e03 (diff)
downloadportage-1689682296b3ad9750ca1432f1255e9798900353.tar.gz
portage-1689682296b3ad9750ca1432f1255e9798900353.tar.bz2
portage-1689682296b3ad9750ca1432f1255e9798900353.zip
Fix insert_optional_args() to properly handle thinks like -Dk which require
multiple substitutions of default arguments. svn path=/main/trunk/; revision=13919
-rw-r--r--pym/_emerge/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 0d14107cb..e0e66d8ac 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -474,7 +474,9 @@ def insert_optional_args(args):
new_args.append(opt_arg)
if saved_opts is not None:
- new_args.append("-" + saved_opts)
+ # Recycle these on arg_stack since they
+ # might contain another match.
+ arg_stack.append("-" + saved_opts)
return new_args