aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2015-03-23 01:23:40 -0700
committerBrian Dolbec <dolsen@gentoo.org>2015-04-03 17:47:01 -0700
commit2e233f393cea16497c3b0b32b6a6fe2b381c5e77 (patch)
tree1e66b41029b3cc92034c0dfdb60f65bdf560ea78 /pym/portage/repository/config.py
parentportage/repository/config.py: Add loglevel setting to the gkeys instantiation (diff)
downloadportage-2e233f393cea16497c3b0b32b6a6fe2b381c5e77.tar.gz
portage-2e233f393cea16497c3b0b32b6a6fe2b381c5e77.tar.bz2
portage-2e233f393cea16497c3b0b32b6a6fe2b381c5e77.zip
repository/config: Add a sigcheck keyword to load_manifest
Add sigcheck keyword check to disable the validateSignature() call for the ManifestProcess which creates a manifest.
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index 27cdaa854..d6a0d72a9 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -349,8 +349,10 @@ class RepoConfig(object):
kwds['find_invalid_path_char'] = self.find_invalid_path_char
kwds['sign_manifest'] = self.sign_manifest
kwds['gkeys'] = self.gkeys
+ sigcheck = kwds.get('sigcheck', True)
mf = manifest.Manifest(*args, **portage._native_kwargs(kwds))
- mf.validateSignature()
+ if sigcheck:
+ mf.validateSignature()
self._manifest_cache[args[0]] = mf
return mf