From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] [PATCH v2 9/9] max-age fixup
Date: Sun, 04 Feb 2018 14:43:04 +0100 [thread overview]
Message-ID: <1517751784.1250.0.camel@gentoo.org> (raw)
In-Reply-To: <20180202204223.9003-9-mgorny@gentoo.org>
W dniu pią, 02.02.2018 o godzinie 21∶42 +0100, użytkownik Michał Górny
napisał:
> ---
> man/portage.5 | 2 +-
> pym/portage/sync/modules/rsync/rsync.py | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/man/portage.5 b/man/portage.5
> index 2d5091109..549c51c73 100644
> --- a/man/portage.5
> +++ b/man/portage.5
> @@ -1091,7 +1091,7 @@ Number of parallel jobs to use when verifying nested Manifests. Defaults
> to the apparent number of processors.
> .TP
> .B sync\-rsync\-verify\-max\-age
> -Warn if repository is older than the specified number of hours. Disabled
> +Warn if repository is older than the specified number of days. Disabled
> when 0. Defaults to disabled.
> .TP
> .B sync\-rsync\-verify\-metamanifest = yes|no
> diff --git a/pym/portage/sync/modules/rsync/rsync.py b/pym/portage/sync/modules/rsync/rsync.py
> index 732298b3f..cc121e0fb 100644
> --- a/pym/portage/sync/modules/rsync/rsync.py
> +++ b/pym/portage/sync/modules/rsync/rsync.py
> @@ -355,8 +355,8 @@ class RsyncSync(NewBase):
> if ts is None:
> raise RuntimeError('Timestamp not found in Manifest')
> if (self.max_age != 0 and
> - (datetime.datetime.utcnow() - ts.ts).hours > self.max_age):
> - out.ewarn('Manifest is over 24 hours old, this is suspicious!')
> + (datetime.datetime.utcnow() - ts.ts).days > self.max_age):
> + out.ewarn('Manifest is over %d days old, this is suspicious!' % (self.max_age,))
> out.ewarn('You may want to try using another mirror and/or reporting this one:')
> out.ewarn(' %s' % (dosyncuri,))
> out.ewarn('')
Note: I've merged this into 6/9 now.
--
Best regards,
Michał Górny
prev parent reply other threads:[~2018-02-04 13:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-02 20:42 [gentoo-portage-dev] [PATCH v2 1/9] rsync: Verify the value of sync-rsync-verify-jobs Michał Górny
2018-02-02 20:42 ` [gentoo-portage-dev] [PATCH v2 2/9] rsync: Use gemato routines directly instead of calling the CLI tool Michał Górny
2018-02-02 20:42 ` [gentoo-portage-dev] [PATCH v2 3/9] rsync: Verify the Manifest signature even if tree is unchanged Michał Górny
2018-02-02 20:42 ` [gentoo-portage-dev] [PATCH v2 4/9] rsync: Pre-indent the try-finally block for gemato key scope Michał Górny
2018-02-02 20:42 ` [gentoo-portage-dev] [PATCH v2 5/9] rsync: Load and update keys early Michał Górny
2018-02-02 20:42 ` [gentoo-portage-dev] [PATCH v2 6/9] rsync: Issue an explicit warning if Manifest timestamp is >24hr old Michał Górny
2018-02-04 13:48 ` M. J. Everitt
2018-02-05 18:44 ` Michał Górny
2018-02-02 20:42 ` [gentoo-portage-dev] [PATCH v2 7/9] git: Support verifying commit signature post-sync Michał Górny
2018-02-02 20:42 ` [gentoo-portage-dev] [PATCH v2 8/9] git: Support running the verification against sync-openpgp-key-path Michał Górny
2018-02-02 20:42 ` [gentoo-portage-dev] [PATCH v2 9/9] max-age fixup Michał Górny
2018-02-04 13:43 ` Michał Górny [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1517751784.1250.0.camel@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox