summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-08-21 13:22:19 -0700
committerZac Medico <zmedico@gentoo.org>2012-08-21 13:22:19 -0700
commitaccee1b7c61da284022f86d9ab39bcb492ea4023 (patch)
tree7a25fa56dbb0b3878f5a8050f60f0a193281057b /pym/portage/dbapi
parentb696337bf20fdc539ce7721df7a4b42b35999705 (diff)
downloadportage-accee1b7c61da284022f86d9ab39bcb492ea4023.tar.gz
portage-accee1b7c61da284022f86d9ab39bcb492ea4023.tar.bz2
portage-accee1b7c61da284022f86d9ab39bcb492ea4023.zip
Implement PORTAGE_CHECKSUM_FILTER for bug #432170
Diffstat (limited to 'pym/portage/dbapi')
-rw-r--r--pym/portage/dbapi/bintree.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 6c01867b6..a2fd5eabe 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -5,7 +5,8 @@ __all__ = ["bindbapi", "binarytree"]
import portage
portage.proxy.lazyimport.lazyimport(globals(),
- 'portage.checksum:hashfunc_map,perform_multiple_checksums,verify_all',
+ 'portage.checksum:hashfunc_map,perform_multiple_checksums,' + \
+ 'verify_all,_apply_hash_filter,_hash_filter',
'portage.dbapi.dep_expand:dep_expand',
'portage.dep:dep_getkey,isjustname,isvalidatom,match_from_list',
'portage.output:EOutput,colorize',
@@ -1462,6 +1463,9 @@ class binarytree(object):
if not digests:
return False
+ hash_filter = _hash_filter(
+ self.settings.get("PORTAGE_CHECKSUM_FILTER", ""))
+ 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)