From: Zac Medico Date: Sun, 16 Sep 2012 21:01:29 +0000 (-0700) Subject: repoman: unsatsified use-default deps, bug 435242 X-Git-Tag: v2.2.0_alpha129~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ca79d9994fc43909203daad5f2c12f750a504b28;p=portage.git repoman: unsatsified use-default deps, bug 435242 --- 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):