EMERGE_DEFAULT_OPTS: shlex for embedded quotes
authorZac Medico <zmedico@gentoo.org>
Sun, 19 May 2013 17:25:21 +0000 (10:25 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 19 May 2013 17:25:21 +0000 (10:25 -0700)
pym/_emerge/main.py

index 8afb56da9763d85b2f63879312436572588c8240..ce00ae34aa6ef8b8ae70869d16a5929ffd25d2b3 100644 (file)
@@ -1043,7 +1043,8 @@ def emerge_main(args=None):
 
        tmpcmdline = []
        if "--ignore-default-opts" not in myopts:
-               tmpcmdline.extend(settings["EMERGE_DEFAULT_OPTS"].split())
+               tmpcmdline.extend(portage.util.shlex_split(
+                       settings.get("EMERGE_DEFAULT_OPTS", "")))
        tmpcmdline.extend(args)
        myaction, myopts, myfiles = parse_opts(tmpcmdline)