Commit 2f72780a authored by Andreas Tille's avatar Andreas Tille

Check whether a repository was previoulsy found in a different group. This...

Check whether a repository was previoulsy found in a different group.  This might uncover the reason for date inconsistencies
parent 55e5d2a3
......@@ -8,6 +8,7 @@ import base64
import subprocess
import time
from dateutil import parser
import re
BLENDSGROUPS={ '3dprinter' : '3dprinting-team'
, 'pkg-a11y' : 'a11y-team'
......@@ -179,7 +180,13 @@ for blend, gpath in sorted(BLENDSGROUPS.items()):
try:
# try reading file - if not exists its just written
invcs = open(os.path.join(namedir,name+'.vcs'), 'r')
stored_team=''
for line in invcs.readlines():
if line.startswith('Vcs-Browser: https://salsa.debian.org/'):
# check in what team space the project was stored
stored_team = re.sub('Vcs-Browser: https://salsa.debian.org/([^/]+)/.*','\\1',line.strip())
if stored_team != gpath:
print("Currently team %s is parsed but project %s was previously found and stored in team %s" % (gpath, name, stored_team))
if line.startswith(LAST_ACTIVITY):
last_activity_at = line[LAST_ACTIVITY_LENGTH:].strip()
if last_activity_at == project.last_activity_at:
......
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