From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R4zJh-00077r-BC for garchives@archives.gentoo.org; Sat, 17 Sep 2011 18:08:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5602321C073; Sat, 17 Sep 2011 18:08:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 251AA21C073 for ; Sat, 17 Sep 2011 18:08:33 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 89A4F1B4017 for ; Sat, 17 Sep 2011 18:08:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id AE2EA80044 for ; Sat, 17 Sep 2011 18:08:31 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/repository/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/repository/config.py X-VCS-Directories: pym/portage/repository/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: dc23070e710acecf9b0229f81a980719605d9409 Date: Sat, 17 Sep 2011 18:08:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 3f93bc627e6884012ffb08c66b1471f4 commit: dc23070e710acecf9b0229f81a980719605d9409 Author: Zac Medico gentoo org> AuthorDate: Sat Sep 17 18:06:48 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Sep 17 18:06:48 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Ddc23070e RepoConfigLoader: handle ValueError from shlex This will handle the issue reported in bug #383269, comment #5. --- 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/co= nfig.py index 5cfe82f..8b1e641 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -194,7 +194,14 @@ class RepoConfigLoader(object): if portdir: portdir =3D normalize_path(portdir) overlays.append(portdir) - port_ov =3D [normalize_path(i) for i in shlex_split(portdir_overlay)] + try: + port_ov =3D [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=3D-1) + port_ov =3D [] overlays.extend(port_ov) default_repo_opts =3D {} if prepos['DEFAULT'].aliases is not None: