diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-24 12:50:06 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-24 12:50:06 -0700 |
commit | d3ad44b102f44aecdc0dc6ef951e853a9dd8dbbe (patch) | |
tree | d7334f5601c83c63d622919d8c33b82f69281466 | |
parent | f4aaee6edd75b16ccbdd7bafe0e0288886a0113a (diff) | |
download | portage-d3ad44b102f44aecdc0dc6ef951e853a9dd8dbbe.tar.gz portage-d3ad44b102f44aecdc0dc6ef951e853a9dd8dbbe.tar.bz2 portage-d3ad44b102f44aecdc0dc6ef951e853a9dd8dbbe.zip |
portdbapi.xmatch: use _visible more
-rw-r--r-- | pym/portage/dbapi/porttree.py | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 09677146c..d3cca00f5 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -911,8 +911,6 @@ class portdbapi(dbapi): mylist = match_from_list(mydep, self.cp_list(mykey, mytree=mytree)) myval = "" - settings = self.settings - local_config = settings.local_config aux_keys = list(self._aux_cache_keys) if level == "minimum-visible": iterfunc = iter @@ -936,29 +934,14 @@ class portdbapi(dbapi): except KeyError: # ebuild not in this repo, or masked by corruption continue - if not eapi_is_supported(metadata["EAPI"]): + + if not self._visible(cpv, metadata): continue + if mydep.slot is not None and \ mydep.slot != metadata["SLOT"]: continue - if settings._getMissingKeywords(cpv, metadata): - continue - if settings._getMaskAtom(cpv, metadata): - continue - if local_config: - metadata["USE"] = "" - if "?" in metadata["LICENSE"] or \ - "?" in metadata["PROPERTIES"]: - self.doebuild_settings.setcpv(cpv, mydb=metadata) - metadata["USE"] = \ - self.doebuild_settings.get("PORTAGE_USE", "") - try: - if settings._getMissingLicenses(cpv, metadata): - continue - if settings._getMissingProperties(cpv, metadata): - continue - except InvalidDependString: - continue + if mydep.use is not None: mydep_with_repo = mydep if repo is not None and mydep.repo is None: |