2 Commits

2 changed files with 2 additions and 2 deletions

View File

@@ -12,4 +12,4 @@ RSYNC_DEF_ARGS = ['--recursive',
'--exclude=.*']
# How many days an upstream should have last synced by before it's considered stale.
DAYS_WARN = 2
VERSION = '1.0.2'
VERSION = '1.0.3'

View File

@@ -262,7 +262,7 @@ class Distro(object):
if sync:
td = datetime.datetime.utcnow() - sync
if td.days > constants.DAYS_WARN:
_logger.warning(('Upstream {0} has not synced for {1}} or more days; this '
_logger.warning(('Upstream {0} has not synced for {1} or more days; this '
'repository may be out of date.').format(u.fetcher.url, constants.DAYS_WARN))
warnings.warn('Upstream may be out of date')
return(None)