diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-04 16:39:13 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-04 16:39:13 -0700 |
commit | b8b3dfdd6a0fd8405d1b0979727febe182b7d17d (patch) | |
tree | 4a309f4abaebb679ad505f753cec0b7e9da87600 | |
parent | 3f901a5c683fb90ef69c33c8e8f1a8f65853b43a (diff) | |
download | portage-b8b3dfdd6a0fd8405d1b0979727febe182b7d17d.tar.gz portage-b8b3dfdd6a0fd8405d1b0979727febe182b7d17d.tar.bz2 portage-b8b3dfdd6a0fd8405d1b0979727febe182b7d17d.zip |
Ignore build-time blockers from DEPEND in
BlockerDB.findInstalledBlockers(), since the
given package should be built already.
-rw-r--r-- | pym/_emerge/BlockerDB.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/_emerge/BlockerDB.py b/pym/_emerge/BlockerDB.py index 53a48bf81..fd4bf5ece 100644 --- a/pym/_emerge/BlockerDB.py +++ b/pym/_emerge/BlockerDB.py @@ -36,8 +36,13 @@ class BlockerDB(object): return fake_vartree def findInstalledBlockers(self, new_pkg, acquire_lock=0): + """ + Search for installed run-time blockers in the root where + new_pkg is planned to be installed. This ignores build-time + blockers, since new_pkg is assumed to be built already. + """ blocker_cache = BlockerCache(self._vartree.root, self._vartree.dbapi) - dep_keys = ["DEPEND", "RDEPEND", "PDEPEND"] + dep_keys = ["RDEPEND", "PDEPEND"] settings = self._vartree.settings stale_cache = set(blocker_cache) fake_vartree = self._get_fake_vartree(acquire_lock=acquire_lock) |