Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13919 - main/trunk/pym/_emerge
Date: Wed, 05 Aug 2009 04:59:13
Message-Id: E1MYYal-0001M1-7V@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-08-05 04:59:10 +0000 (Wed, 05 Aug 2009)
3 New Revision: 13919
4
5 Modified:
6 main/trunk/pym/_emerge/main.py
7 Log:
8 Fix insert_optional_args() to properly handle thinks like -Dk which require
9 multiple substitutions of default arguments.
10
11
12 Modified: main/trunk/pym/_emerge/main.py
13 ===================================================================
14 --- main/trunk/pym/_emerge/main.py 2009-08-05 01:16:24 UTC (rev 13918)
15 +++ main/trunk/pym/_emerge/main.py 2009-08-05 04:59:10 UTC (rev 13919)
16 @@ -474,7 +474,9 @@
17 new_args.append(opt_arg)
18
19 if saved_opts is not None:
20 - new_args.append("-" + saved_opts)
21 + # Recycle these on arg_stack since they
22 + # might contain another match.
23 + arg_stack.append("-" + saved_opts)
24
25 return new_args