1 |
commit: 63ecaedb3bb95bc64987c233029a5d6d62c44ee2 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 19 17:25:21 2013 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 19 17:25:21 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=63ecaedb |
7 |
|
8 |
EMERGE_DEFAULT_OPTS: shlex for embedded quotes |
9 |
|
10 |
--- |
11 |
pym/_emerge/main.py | 3 ++- |
12 |
1 files changed, 2 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py |
15 |
index 8afb56d..ce00ae3 100644 |
16 |
--- a/pym/_emerge/main.py |
17 |
+++ b/pym/_emerge/main.py |
18 |
@@ -1043,7 +1043,8 @@ def emerge_main(args=None): |
19 |
|
20 |
tmpcmdline = [] |
21 |
if "--ignore-default-opts" not in myopts: |
22 |
- tmpcmdline.extend(settings["EMERGE_DEFAULT_OPTS"].split()) |
23 |
+ tmpcmdline.extend(portage.util.shlex_split( |
24 |
+ settings.get("EMERGE_DEFAULT_OPTS", ""))) |
25 |
tmpcmdline.extend(args) |
26 |
myaction, myopts, myfiles = parse_opts(tmpcmdline) |