summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-08-21 21:01:24 -0700
committerZac Medico <zmedico@gentoo.org>2012-08-21 21:01:24 -0700
commita3185709c7e6fa576ffddac59a9b4ff7e5243e6b (patch)
treed2196682ec7db08aa5ff201a1a89c1299b473b20 /pym/portage/dbapi
parentaccee1b7c61da284022f86d9ab39bcb492ea4023 (diff)
downloadportage-a3185709c7e6fa576ffddac59a9b4ff7e5243e6b.tar.gz
portage-a3185709c7e6fa576ffddac59a9b4ff7e5243e6b.tar.bz2
portage-a3185709c7e6fa576ffddac59a9b4ff7e5243e6b.zip
_apply_hash_filter: make hash_filter simpler
Now any callable object will work, which might be helpful for consumers of the Manifest.checkFileHashes() method.
Diffstat (limited to 'pym/portage/dbapi')
-rw-r--r--pym/portage/dbapi/bintree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index a2fd5eabe..7f0943607 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -1465,7 +1465,8 @@ class binarytree(object):
hash_filter = _hash_filter(
self.settings.get("PORTAGE_CHECKSUM_FILTER", ""))
- digests = _apply_hash_filter(digests, hash_filter)
+ if not hash_filter.transparent:
+ digests = _apply_hash_filter(digests, hash_filter)
eout = EOutput()
eout.quiet = self.settings.get("PORTAGE_QUIET") == "1"
ok, st = _check_distfile(pkg_path, digests, eout, show_errors=0)