1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 18:50:11 +02:00

lint: cleanup, remove stale sites

This commit is contained in:
Daniel Martí 2015-09-10 16:34:26 -07:00
parent 9489e80f09
commit e9e2713cde

View File

@ -38,11 +38,9 @@ https_enforcings = [
enforce_https('github.com'), enforce_https('github.com'),
enforce_https('gitlab.com'), enforce_https('gitlab.com'),
enforce_https('bitbucket.org'), enforce_https('bitbucket.org'),
enforce_https('gitorious.org'),
enforce_https('apache.org'), enforce_https('apache.org'),
enforce_https('google.com'), enforce_https('google.com'),
enforce_https('svn.code.sf.net'), enforce_https('svn.code.sf.net'),
enforce_https('googlecode.com'),
] ]
@ -173,12 +171,10 @@ def main():
curid = appid curid = appid
count['app_total'] += 1 count['app_total'] += 1
# enabled_builds = 0
lowest_vercode = -1 lowest_vercode = -1
curbuild = None curbuild = None
for build in app['builds']: for build in app['builds']:
if not build['disable']: if not build['disable']:
# enabled_builds += 1
vercode = int(build['vercode']) vercode = int(build['vercode'])
if lowest_vercode == -1 or vercode < lowest_vercode: if lowest_vercode == -1 or vercode < lowest_vercode:
lowest_vercode = vercode lowest_vercode = vercode
@ -215,7 +211,6 @@ def main():
old_sites = [ old_sites = [
'gitorious.org', 'gitorious.org',
'code.google.com', 'code.google.com',
# 'sourceforge.net', # too many false positives as of now
] ]
if any(s in app['Repo'] for s in usual_sites): if any(s in app['Repo'] for s in usual_sites):
for f in ['Web Site', 'Source Code', 'Issue Tracker', 'Changelog']: for f in ['Web Site', 'Source Code', 'Issue Tracker', 'Changelog']: