summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <r00t@square-r00t.net>2020-07-23 14:49:50 -0400
committerbrent s <r00t@square-r00t.net>2020-07-23 14:49:50 -0400
commitd751d14be4a0c4cdf7e23cd98b7b1948eaf109d6 (patch)
treebf2f8a1dfc0c8d628ae1b2fa6260f90dba39eb4e
parentbc9a6532345108c8d8930c2173341620cc4ce8db (diff)
downloadRepoMirror-d751d14be4a0c4cdf7e23cd98b7b1948eaf109d6.tar.xz
oops.
-rw-r--r--repomirror/sync.py2
1 files changed, 1 insertions, 1 deletions
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')