diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-08-06 21:47:56 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-08-06 21:47:56 +0000 |
commit | 78e6f6b713ce7941980143c1e2b63aa845659a21 (patch) | |
tree | be8eee3334df6e917cd4e5fddfce5ab06b204db2 /pym/portage/getbinpkg.py | |
parent | 416c082add3ff875a4f4fc3c063b175ccca7ec7a (diff) | |
download | portage-78e6f6b713ce7941980143c1e2b63aa845659a21.tar.gz portage-78e6f6b713ce7941980143c1e2b63aa845659a21.tar.bz2 portage-78e6f6b713ce7941980143c1e2b63aa845659a21.zip |
Add a new portage.util.shlex_split() function to wrap all shlex.split() calls,
since shlex.split() doesn't behave well with unicode strings.
svn path=/main/trunk/; revision=13939
Diffstat (limited to 'pym/portage/getbinpkg.py')
-rw-r--r-- | pym/portage/getbinpkg.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/getbinpkg.py b/pym/portage/getbinpkg.py index 29e2ff4f8..75d997e54 100644 --- a/pym/portage/getbinpkg.py +++ b/pym/portage/getbinpkg.py @@ -5,7 +5,7 @@ from portage.output import colorize from portage.cache.mappings import slot_dict_class -import portage.xpak +import portage import HTMLParser import sys import os @@ -400,10 +400,10 @@ def file_get(baseurl,dest,conn=None,fcmd=None): "URI": baseurl, "FILE": os.path.basename(baseurl) } - import shlex + from portage.util import varexpand from portage.process import spawn - myfetch = shlex.split(fcmd) + myfetch = portage.util.shlex_split(fcmd) myfetch = [varexpand(x, mydict=variables) for x in myfetch] fd_pipes= { 0:sys.stdin.fileno(), |