diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-12 22:48:36 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-12 22:48:36 -0700 |
commit | 9cb089047e10b300100e7bbdc4274ecf8866b0bb (patch) | |
tree | c54da424216761c0b2d9382504738d448073993a /pym | |
parent | c646a13990bc1267ab5f557d72f3c02c08be82ad (diff) | |
download | portage-9cb089047e10b300100e7bbdc4274ecf8866b0bb.tar.gz portage-9cb089047e10b300100e7bbdc4274ecf8866b0bb.tar.bz2 portage-9cb089047e10b300100e7bbdc4274ecf8866b0bb.zip |
metadata/layout.conf: "sign-manifests = false"
This allows repos to disable manifest signatures, which is useful if
they want to prevent merge conflicts like those that thin-manifests is
designed to prevent.
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/repository/config.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 17839d7b8..5cfe82f4a 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -42,7 +42,7 @@ class RepoConfig(object): """Stores config of one repository""" __slots__ = ['aliases', 'eclass_overrides', 'eclass_locations', 'location', 'user_location', 'masters', 'main_repo', - 'missing_repo_name', 'name', 'priority', 'sync', 'format', 'thin_manifest'] + 'missing_repo_name', 'name', 'priority', 'sync', 'format', 'sign_manifest', 'thin_manifest'] def __init__(self, name, repo_opts): """Build a RepoConfig with options in repo_opts @@ -111,6 +111,7 @@ class RepoConfig(object): missing = False self.name = name self.missing_repo_name = missing + self.sign_manifest = True self.thin_manifest = False def load_manifest(self, *args, **kwds): @@ -331,6 +332,9 @@ class RepoConfigLoader(object): aliases.extend(repo.aliases) repo.aliases = tuple(sorted(set(aliases))) + if layout_data.get('sign-manifests', '').lower() == 'false': + repo.sign_manifest = False + if layout_data.get('thin-manifests', '').lower() == 'true': repo.thin_manifest = True |