On 02/02/18 20:42, Michał Górny wrote[excerpted]:
> index 27a2548c0..cb80f6d66 100644
> --- a/pym/portage/sync/modules/rsync/__init__.py
> +++ b/pym/portage/sync/modules/rsync/__init__.py
> @@ -109,6 +110,20 @@ class RsyncSync(NewBase):
>                               writemsg_level("!!! sync-rsync-verify-jobs not 
> a positive integer: %s\n" % (self.verify_jobs,),
>                                       level=logging.WARNING, noiselevel=-1)
>                               self.verify_jobs = None
> +             # Support overriding max age.
> +             self.max_age = self.repo.module_specific_options.get(
> +                             'sync-rsync-verify-max-age', '')
> +             if self.max_age:
> +                     try:
> +                             self.max_age = int(self.max_age)
> +                             if self.max_age < 0:
> +                                     raise ValueError(self.max_age)
> +                     except ValueError:
> +                             writemsg_level("!!! sync-rsync-max-age not a 
> non-negative integer: %s\n" % (self.max_age,),
A beautiful double-negative .. but would read better as "not a positive
integer" or "is a negative integer" ..

MJE

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to