Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH v2] rsync: Fix *-verify-metamanifest boolean parsing
Date: Tue, 30 Jan 2018 19:30:25
Message-Id: 337888ee-4239-1b06-dc17-035042c6896c@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH v2] rsync: Fix *-verify-metamanifest boolean parsing by "Michał Górny"
1 On 01/30/2018 11:18 AM, Michał Górny wrote:
2 > Fix sync-rsync-verify-metamanifest to correctly parse yes|no. Also
3 > correct the manpage to use those two terms as they were the ones used
4 > in repos.conf and the news item.
5 > ---
6 > man/portage.5 | 4 ++--
7 > pym/portage/sync/modules/rsync/rsync.py | 5 +++--
8 > 2 files changed, 5 insertions(+), 4 deletions(-)
9 >
10 > v2: changed to support 'true' as well.
11 >
12 > diff --git a/man/portage.5 b/man/portage.5
13 > index 1f6259715..d4f755f51 100644
14 > --- a/man/portage.5
15 > +++ b/man/portage.5
16 > @@ -1086,9 +1086,9 @@ directories if appropriate.
17 > Number of parallel jobs to use when verifying nested Manifests. Defaults
18 > to the apparent number of processors.
19 > .TP
20 > -.B sync\-rsync\-verify\-metamanifest = true|false
21 > +.B sync\-rsync\-verify\-metamanifest = yes|no
22 > Require the repository to contain a signed MetaManifest and verify
23 > -it using \fBapp\-portage/gemato\fR. Defaults to false.
24 > +it using \fBapp\-portage/gemato\fR. Defaults to no.
25 >
26 > .RE
27 >
28 > diff --git a/pym/portage/sync/modules/rsync/rsync.py b/pym/portage/sync/modules/rsync/rsync.py
29 > index d9d7d56f2..7c020a563 100644
30 > --- a/pym/portage/sync/modules/rsync/rsync.py
31 > +++ b/pym/portage/sync/modules/rsync/rsync.py
32 > @@ -83,10 +83,11 @@ class RsyncSync(NewBase):
33 > self.repo.module_specific_options['sync-rsync-extra-opts']))
34 >
35 > # Process GLEP74 verification options.
36 > - # Default verification to 'on' for ::gentoo, 'off' otherwise.
37 > + # Default verification to 'no'; it's enabled for ::gentoo
38 > + # via default repos.conf though.
39 > self.verify_metamanifest = (
40 > self.repo.module_specific_options.get(
41 > - 'sync-rsync-verify-metamanifest', False))
42 > + 'sync-rsync-verify-metamanifest', 'no') in ('yes', 'true'))
43 > # Support overriding job count.
44 > self.verify_jobs = self.repo.module_specific_options.get(
45 > 'sync-rsync-verify-jobs', None)
46 >
47
48 Looks good.
49 --
50 Thanks,
51 Zac

Attachments

File name MIME type
signature.asc application/pgp-signature