From ca79d9994fc43909203daad5f2c12f750a504b28 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 16 Sep 2012 14:01:29 -0700 Subject: [PATCH] repoman: unsatsified use-default deps, bug 435242 --- pym/portage/dbapi/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pym/portage/dbapi/__init__.py b/pym/portage/dbapi/__init__.py index dc0a3da68..e36a0ef21 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): -- 2.26.2