Commit 55e5d2a3 authored by Andreas Tille's avatar Andreas Tille

Warn about repositories with older date than recordet and do not fetch data from there

parent ad56c376
......@@ -7,6 +7,7 @@ import shutil
import base64
import subprocess
import time
from dateutil import parser
BLENDSGROUPS={ '3dprinter' : '3dprinting-team'
, 'pkg-a11y' : 'a11y-team'
......@@ -187,6 +188,12 @@ for blend, gpath in sorted(BLENDSGROUPS.items()):
if debug > 1:
print("Do nothing in %s since found last_activity_at %s == repository %s" % (name, last_activity_at, project.last_activity_at))
else:
last_activity_recorded = parser.parse(last_activity_at)
last_activity_project = parser.parse(project.last_activity_at)
if ( last_activity_project < last_activity_recorded ):
print("For some strange reason the repository of %s has an older timestamp (%s) than it was recorded before (%s). Do not parse again!" % (name, project.last_activity_at, last_activity_at))
dosomething=False
unchanged += 1
if debug > 0:
print("Continue with %s since found last_activity_at %s != repository %s" % (name, last_activity_at, project.last_activity_at))
changed += 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment