diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portage/repository/config.py | 4 | ||||
-rw-r--r-- | lib/portage/sync/modules/git/git.py | 4 | ||||
-rw-r--r-- | lib/portage/sync/modules/rsync/rsync.py | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/portage/repository/config.py b/lib/portage/repository/config.py index 6155c130a..3a5425be7 100644 --- a/lib/portage/repository/config.py +++ b/lib/portage/repository/config.py @@ -220,10 +220,10 @@ class RepoConfig(object): self.sync_depth = repo_opts.get('sync-depth') self.sync_hooks_only_on_change = repo_opts.get( - 'sync-hooks-only-on-change', 'false').lower() == 'true' + 'sync-hooks-only-on-change', 'false').lower() in ('true', 'yes') self.strict_misc_digests = repo_opts.get( - 'strict-misc-digests', 'true').lower() == 'true' + 'strict-misc-digests', 'true').lower() in ('true', 'yes') self.sync_allow_hardlinks = repo_opts.get( 'sync-allow-hardlinks', 'true').lower() in ('true', 'yes') diff --git a/lib/portage/sync/modules/git/git.py b/lib/portage/sync/modules/git/git.py index 7df4b6d61..ed8c1979f 100644 --- a/lib/portage/sync/modules/git/git.py +++ b/lib/portage/sync/modules/git/git.py @@ -1,4 +1,4 @@ -# Copyright 2005-2018 Gentoo Foundation +# Copyright 2005-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 import io @@ -204,7 +204,7 @@ class GitSync(NewBase): def verify_head(self, revision='-1'): if (self.repo.module_specific_options.get( - 'sync-git-verify-commit-signature', 'false') != 'true'): + 'sync-git-verify-commit-signature', 'false').lower() not in ('true', 'yes')): return True if self.repo.sync_openpgp_key_path is not None: diff --git a/lib/portage/sync/modules/rsync/rsync.py b/lib/portage/sync/modules/rsync/rsync.py index a40e1c854..9be96c24c 100644 --- a/lib/portage/sync/modules/rsync/rsync.py +++ b/lib/portage/sync/modules/rsync/rsync.py @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 import sys @@ -68,7 +68,7 @@ class RsyncSync(NewBase): out = portage.output.EOutput(quiet=quiet) syncuri = self.repo.sync_uri if self.repo.module_specific_options.get( - 'sync-rsync-vcs-ignore', 'false').lower() == 'true': + 'sync-rsync-vcs-ignore', 'false').lower() in ('true', 'yes'): vcs_dirs = () else: vcs_dirs = frozenset(VCS_DIRS) @@ -102,7 +102,7 @@ class RsyncSync(NewBase): # via default repos.conf though. self.verify_metamanifest = ( self.repo.module_specific_options.get( - 'sync-rsync-verify-metamanifest', 'no') in ('yes', 'true')) + 'sync-rsync-verify-metamanifest', 'no').lower() in ('yes', 'true')) # Support overriding job count. self.verify_jobs = self.repo.module_specific_options.get( 'sync-rsync-verify-jobs', None) |