new entry, license updates, github repositories with .git at the end

This commit is contained in:
Trilarion
2018-08-29 14:38:45 +02:00
parent ce56eab75c
commit 2ffa2f20b2
260 changed files with 572 additions and 543 deletions

View File

@ -14,7 +14,6 @@
"https://git.code.sf.net/p/autorealm/code",
"https://git.code.sf.net/p/autorealm/delphi",
"https://git.code.sf.net/p/autorealm/http",
"https://git.code.sf.net/p/battlefieldjava/git",
"https://git.code.sf.net/p/bygfoot/git",
"https://git.code.sf.net/p/dangerdeep/git",
"https://git.code.sf.net/p/dnt/code",
@ -28,7 +27,6 @@
"https://git.code.sf.net/p/gigalomania/code",
"https://git.code.sf.net/p/lipsofsuna/code",
"https://git.code.sf.net/p/monstergenerato/code",
"https://git.code.sf.net/p/mpango/git",
"https://git.code.sf.net/p/nazghul/git",
"https://git.code.sf.net/p/rmoffice/code",
"https://git.code.sf.net/p/sc2/uqm",
@ -56,6 +54,7 @@
"https://github.com/Attnam/ivan.git",
"https://github.com/BGCX067/fallenspire-svn-to-git.git",
"https://github.com/BackupTheBerlios/netpanzer-svn.git",
"https://github.com/BlindMindStudios/StarRuler2-Source.git",
"https://github.com/CamHenlin/Roguish.git",
"https://github.com/Circular-Studios/Dash.git",
"https://github.com/Cirrus-Minor/witchblast.git",
@ -116,6 +115,7 @@
"https://github.com/SupSuper/OpenXcom.git",
"https://github.com/TVTower/TVTower.git",
"https://github.com/TobiasBielefeld/Simple-Solitaire.git",
"https://github.com/Trilarion/armies.git",
"https://github.com/Trilarion/avanor.git",
"https://github.com/Trilarion/blacknova.git",
"https://github.com/Trilarion/boson.git",
@ -129,11 +129,14 @@
"https://github.com/Trilarion/glest.git",
"https://github.com/Trilarion/howc.git",
"https://github.com/Trilarion/jewelhunt.git",
"https://github.com/Trilarion/jquest.git",
"https://github.com/Trilarion/mars.git",
"https://github.com/Trilarion/mpango.git",
"https://github.com/Trilarion/radakan.git",
"https://github.com/Trilarion/rpdungeon.git",
"https://github.com/Trilarion/sge2d.git",
"https://github.com/Trilarion/spaceopera.git",
"https://github.com/Trilarion/spacetraderjava.git",
"https://github.com/Trilarion/ura-game.git",
"https://github.com/Trilarion/vegatrek.git",
"https://github.com/Trilarion/xforceffd.git",
@ -162,6 +165,7 @@
"https://github.com/boostorg/boost.git",
"https://github.com/bote-team/bote.git",
"https://github.com/brandon-rhodes/python-adventure.git",
"https://github.com/bsutton/BattlefieldJava.git",
"https://github.com/calref/cboe.git",
"https://github.com/chubakur/wizards-magic.git",
"https://github.com/chubakur/wizards-magic2.git",
@ -392,7 +396,6 @@
"https://svn.code.sf.net/p/planeshift/code/",
"https://svn.code.sf.net/p/solaristhegame/code/",
"https://svn.code.sf.net/p/space-faring/code/",
"https://svn.code.sf.net/p/spacetraderjava/code/",
"https://svn.code.sf.net/p/speed-dreams/code/",
"https://svn.code.sf.net/p/xu4/code/"
],

View File

@ -318,11 +318,11 @@ def parse_entry(content):
if ' ' in url:
print('URL "{}" in entry "{}" contains a space'.format(url, info['title']))
# github repositories should not end on .git
# github repositories should end on .git
repos = info['code repository']
for repo in repos:
if repo.startswith('https://github.com/') and repo.endswith('.git'):
print('Github repo {} in entry "{}" should not end on .git.'.format(repo, info['title']))
if repo.startswith('https://github.com/') and not repo.endswith('.git'):
print('Github repo {} in entry "{}" should end on .git.'.format(repo, info['title']))
# extract inactive
phrase = 'inactive since '
@ -578,19 +578,13 @@ def export_json():
def git_repo(repo):
"""
Tests if a repo is a git repo, then returns the repo url, possibly modifying it slightly (for Github).
Tests if a repo is a git repo, then returns the repo url, possibly modifying it slightly.
"""
# generic (https://*.git) or (http://*.git) ending on git
if (repo.startswith('https://') or repo.startswith('http://')) and repo.endswith('.git'):
return repo
# for github we check that the url is github.com/user/repo and add .git
github = 'https://github.com/'
if repo.startswith(github):
if len(repo.split('/')) == 5:
return repo + '.git'
# for all others we just check if they start with the typical urls of git services
services = ['https://git.tuxfamily.org/', 'http://git.pond.sub.org/', 'https://gitorious.org/', 'https://git.code.sf.net/p/']
for service in services: