diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-17 11:06:48 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-17 11:06:48 -0700 |
commit | dc23070e710acecf9b0229f81a980719605d9409 (patch) | |
tree | 268ed39fff7b9d93d7158e922ad1271a89243ffe | |
parent | c5ffb546b7833dfcefffe7c68ab3a3f040139a91 (diff) | |
download | portage-dc23070e710acecf9b0229f81a980719605d9409.tar.gz portage-dc23070e710acecf9b0229f81a980719605d9409.tar.bz2 portage-dc23070e710acecf9b0229f81a980719605d9409.zip |
RepoConfigLoader: handle ValueError from shlex
This will handle the issue reported in bug #383269, comment #5.
-rw-r--r-- | pym/portage/repository/config.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 5cfe82f4a..8b1e641b2 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -194,7 +194,14 @@ class RepoConfigLoader(object): if portdir: portdir = normalize_path(portdir) overlays.append(portdir) - port_ov = [normalize_path(i) for i in shlex_split(portdir_overlay)] + try: + port_ov = [normalize_path(i) for i in shlex_split(portdir_overlay)] + except ValueError as e: + #File "/usr/lib/python3.2/shlex.py", line 168, in read_token + # raise ValueError("No closing quotation") + writemsg(_("!!! Invalid PORTDIR_OVERLAY:" + " %s: %s\n") % (e, portdir_overlay), noiselevel=-1) + port_ov = [] overlays.extend(port_ov) default_repo_opts = {} if prepos['DEFAULT'].aliases is not None: |