This commit is contained in:
brent s 2020-07-23 14:49:50 -04:00
parent bc9a653234
commit d751d14be4
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -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')