* [gentoo-commits] proj/portage:master commit in: pym/portage/repository/, pym/portage/sync/modules/rsync/
@ 2018-02-01 20:51 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2018-02-01 20:51 UTC (permalink / raw
To: gentoo-commits
commit: c34924a3f474025d8434caec7ab1ec542daa4c6a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 1 20:22:58 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb 1 20:50:40 2018 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=c34924a3
openpgp_key_path -> sync_openpgp_key_path
Rename the openpgp_key_path attribute to sync_openpgp_key_path since
Portage code assumes that attribute name matches config key.
Reviewed-by: Zac Medico <zmedico <AT> gentoo.org>
pym/portage/repository/config.py | 6 +++---
pym/portage/sync/modules/rsync/rsync.py | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index d3a622f7c..a71047d9b 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -1,4 +1,4 @@
-# Copyright 2010-2017 Gentoo Foundation
+# Copyright 2010-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
from __future__ import unicode_literals
@@ -86,7 +86,7 @@ class RepoConfig(object):
'sync_type', 'sync_umask', 'sync_uri', 'sync_user', 'thin_manifest',
'update_changelog', '_eapis_banned', '_eapis_deprecated',
'_masters_orig', 'module_specific_options', 'manifest_required_hashes',
- 'openpgp_key_path',
+ 'sync_openpgp_key_path',
)
def __init__(self, name, repo_opts, local_config=True):
@@ -183,7 +183,7 @@ class RepoConfig(object):
self.strict_misc_digests = repo_opts.get(
'strict-misc-digests', 'true').lower() == 'true'
- self.openpgp_key_path = repo_opts.get(
+ self.sync_openpgp_key_path = repo_opts.get(
'sync-openpgp-key-path', None)
self.module_specific_options = {}
diff --git a/pym/portage/sync/modules/rsync/rsync.py b/pym/portage/sync/modules/rsync/rsync.py
index e2e6d0658..4471f5bbe 100644
--- a/pym/portage/sync/modules/rsync/rsync.py
+++ b/pym/portage/sync/modules/rsync/rsync.py
@@ -277,8 +277,8 @@ class RsyncSync(NewBase):
# if synced successfully, verify now
if exitcode == 0 and not local_state_unchanged and self.verify_metamanifest:
command = ['gemato', 'verify', '-s', self.repo.location]
- if self.repo.openpgp_key_path is not None:
- command += ['-K', self.repo.openpgp_key_path]
+ if self.repo.sync_openpgp_key_path is not None:
+ command += ['-K', self.repo.sync_openpgp_key_path]
if self.verify_jobs is not None:
command += ['-j', self.verify_jobs]
try:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-01 20:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-01 20:51 [gentoo-commits] proj/portage:master commit in: pym/portage/repository/, pym/portage/sync/modules/rsync/ Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox