Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
6d384e71ae
|
|||
|
09afe59b91
|
@@ -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'
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user