From d751d14be4a0c4cdf7e23cd98b7b1948eaf109d6 Mon Sep 17 00:00:00 2001 From: brent s Date: Thu, 23 Jul 2020 14:49:50 -0400 Subject: [PATCH] oops. --- repomirror/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repomirror/sync.py b/repomirror/sync.py index 0e249ee..daaf2c2 100644 --- a/repomirror/sync.py +++ b/repomirror/sync.py @@ -293,7 +293,7 @@ class Distro(object): u.has_new = True if sync and u.delay: td = datetime.datetime.utcnow() - sync - if td.days > u.delay: + if td > u.delay: _logger.warning(('Upstream {0} has not synced for {1} or longer; this ' 'repository may be out of date.').format(u.fetcher.url, u.delay)) warnings.warn('Upstream may be out of date')