summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico2012-09-16 21:01:29 (GMT)
committerZac Medico2012-09-16 21:01:29 (GMT)
commitca79d9994fc43909203daad5f2c12f750a504b28 (patch)
treecbccf5a92e126c21da2dc9fd0d3d427e28dcd1ba
parentdb74640678f445f768922046bfe5d87c4822e249 (diff)
repoman: unsatsified use-default deps, bug 435242
-rw-r--r--pym/portage/dbapi/__init__.py10
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):