updates of repositories

This commit is contained in:
Trilarion
2019-06-07 13:45:26 +02:00
parent 3dcba4ca33
commit 203021573f
11 changed files with 64 additions and 31 deletions

View File

@ -33,7 +33,7 @@
"https://git.code.sf.net/p/space-war-2/git",
"https://git.code.sf.net/p/stars-nova/code",
"https://git.net-core.org/tome/t-engine4.git",
"https://git.octaforge.org/engine/octaforge.git",
"https://git.octaforge.org/OctaForge/OctaCore.git",
"https://git.savannah.gnu.org/git/adonthell/adonthell-wastesedge.git",
"https://git.savannah.gnu.org/git/freedink.git",
"https://git.savannah.gnu.org/git/freetype/freetype2-demos.git",
@ -79,7 +79,6 @@
"https://github.com/LibreGamesArchive/galaxymageredux.git",
"https://github.com/LibreGamesArchive/silvertree.git",
"https://github.com/LionsPhil/mewl.git",
"https://github.com/LynxAbraxas/ctp2.git",
"https://github.com/MattMatt0240/DemiGod.git",
"https://github.com/MegaGlest/megaglest-source.git",
"https://github.com/MegaMek/megamek.git",
@ -146,6 +145,7 @@
"https://github.com/chubakur/wizards-magic.git",
"https://github.com/chubakur/wizards-magic2.git",
"https://github.com/ciplogic/fheroes2enh.git",
"https://github.com/civctp2/civctp2.git",
"https://github.com/clintbellanger/flare-engine.git",
"https://github.com/cocos2d/cocos2d-x.git",
"https://github.com/colobot/colobot.git",
@ -328,6 +328,7 @@
"https://gitlab.com/osgames/dungeonmap.git",
"https://gitlab.com/osgames/endlessdungeons.git",
"https://gitlab.com/osgames/eos-game.git",
"https://gitlab.com/osgames/firststrike.git",
"https://gitlab.com/osgames/freetrain.git",
"https://gitlab.com/osgames/fujo.git",
"https://gitlab.com/osgames/galaxyng.git",
@ -369,6 +370,7 @@
"https://gitlab.com/osgames/tbots.git",
"https://gitlab.com/osgames/theclans.git",
"https://gitlab.com/osgames/tuxracer.git",
"https://gitlab.com/osgames/uaf.git",
"https://gitlab.com/osgames/ura-game.git",
"https://gitlab.com/osgames/uwadv.git",
"https://gitlab.com/osgames/wargamer.git",
@ -392,7 +394,6 @@
"https://svn.code.sf.net/p/daimonin/code/",
"https://svn.code.sf.net/p/darkcity/code/",
"https://svn.code.sf.net/p/darkdestiny/code/",
"https://svn.code.sf.net/p/firststrikegame/code/",
"https://svn.code.sf.net/p/freemars/code/",
"https://svn.code.sf.net/p/freesynd/code/",
"https://svn.code.sf.net/p/fsc/code/",

View File

@ -3,10 +3,12 @@ Clones and/or pulls all the gits listed in archives.json
Requires: git executable in the path
Uses 'git clone --mirror' to set up the git locally.
Warning: This may take a long time on the first run and may need a lot of storage space!
TODO are really all existing branches cloned and pulled? (see https://stackoverflow.com/questions/67699/how-to-clone-all-remote-branches-in-git)
TODO Sourceforge git clone may not work all the time (restart the script helps..)
TODO Sourceforge git clone may not work all the time (restarting the script sometimes helps..)
Note: May need to set http.postBuffer (https://stackoverflow.com/questions/17683295/git-bash-error-rpc-failed-result-18-htp-code-200b-1kib-s)
"""
@ -130,7 +132,10 @@ def run_update(type, urls):
continue
if not os.path.isdir(folder):
print('clone {} into {}'.format(url, folder[len(base_folder):]))
clone[type](url, folder)
try:
clone[type](url, folder)
except RuntimeError as e:
print('error occurred while cloning, will skip')
# at the end update them all
for folder in folders:
@ -139,7 +144,10 @@ def run_update(type, urls):
print('folder not existing, wanted to update, will skip')
continue
print('update {}'.format(folder[len(base_folder):]))
update[type](folder)
try:
update[type](folder)
except RuntimeError as e:
print('error occurred while updating, will skip')
def run_info(type, urls):