From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6ABBA138010 for ; Sun, 16 Sep 2012 21:01:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3BC0E21C00E; Sun, 16 Sep 2012 21:01:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0D83F21C00E for ; Sun, 16 Sep 2012 21:01:41 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 77B1A33C900 for ; Sun, 16 Sep 2012 21:01:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 2ED87E5442 for ; Sun, 16 Sep 2012 21:01:40 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1347829289.ca79d9994fc43909203daad5f2c12f750a504b28.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/dbapi/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/dbapi/__init__.py X-VCS-Directories: pym/portage/dbapi/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: ca79d9994fc43909203daad5f2c12f750a504b28 X-VCS-Branch: master Date: Sun, 16 Sep 2012 21:01:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b5d5f3f0-3f08-499e-9a79-09e0a7355eb0 X-Archives-Hash: 2d5da36dff3cfed350102d4f070d6ae3 commit: ca79d9994fc43909203daad5f2c12f750a504b28 Author: Zac Medico gentoo org> AuthorDate: Sun Sep 16 21:01:29 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Sep 16 21:01:29 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ca79d999 repoman: unsatsified use-default deps, bug 435242 --- pym/portage/dbapi/__init__.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/pym/portage/dbapi/__init__.py b/pym/portage/dbapi/__init__.py index dc0a3da..e36a0ef 100644 --- a/pym/portage/dbapi/__init__.py +++ b/pym/portage/dbapi/__init__.py @@ -253,6 +253,16 @@ class dbapi(object): for x in atom.use.disabled): return False + # Check unsatsified use-default deps + if atom.use.enabled: + missing_disabled = atom.use.missing_disabled.difference(iuse) + if any(x in atom.use.enabled for x in missing_disabled): + return False + if atom.use.disabled: + missing_enabled = atom.use.missing_enabled.difference(iuse) + if any(x in atom.use.disabled for x in missing_enabled): + return False + return True def invalidentry(self, mypath):