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 1Pqwn3-0003AU-Hl for garchives@archives.gentoo.org; Sun, 20 Feb 2011 00:04:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E6BE61C057; Sun, 20 Feb 2011 00:04:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B4F8A1C068 for ; Sun, 20 Feb 2011 00:04:19 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6D5B41B40CE for ; Sun, 20 Feb 2011 00:04:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D662C80072 for ; Sun, 20 Feb 2011 00:04:18 +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: <91ae1f7c9902f48eb2d0826a96ea3ec6fae4cc62.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:2.1.9 commit in: pym/portage/dep/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/dep/__init__.py X-VCS-Directories: pym/portage/dep/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 91ae1f7c9902f48eb2d0826a96ea3ec6fae4cc62 Date: Sun, 20 Feb 2011 00:04:18 +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: 019d082277f0b0b7cacb750884a7b214 commit: 91ae1f7c9902f48eb2d0826a96ea3ec6fae4cc62 Author: Zac Medico gentoo org> AuthorDate: Sat Feb 19 22:53:45 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Feb 20 00:03:24 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D91ae1f7c check_required_use: improve missing IUSE error This will fix bug #355629. --- pym/portage/dep/__init__.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index a8d05f1..a92b481 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -2145,8 +2145,10 @@ def check_required_use(required_use, use, iuse_mat= ch): is_negated =3D False =20 if not flag or not iuse_match(flag): - raise InvalidDependString( - _("malformed syntax: '%s'") % required_use) + msg =3D _("USE flag '%s' is not in IUSE") \ + % (flag,) + e =3D InvalidData(msg, category=3D'IUSE.missing') + raise InvalidDependString(msg, errors=3D(e,)) =20 return (flag in use and not is_negated) or \ (flag not in use and is_negated)