mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
Added support for mercurial
This commit is contained in:
parent
eeab77269b
commit
a6b4830add
2
README
2
README
@ -68,7 +68,7 @@ The type of repository - for automatic building from source. If this is not
|
||||
specified, automatic building is disabled for this application. Possible
|
||||
values are:
|
||||
|
||||
git, svn
|
||||
git, svn, hg
|
||||
|
||||
==Repo==
|
||||
|
||||
|
10
build.py
10
build.py
@ -73,6 +73,10 @@ for app in apps:
|
||||
if subprocess.call(['svn', 'checkout', app['repo'], build_dir]) != 0:
|
||||
print "Svn checkout failed"
|
||||
sys.exit(1)
|
||||
elif app['repotype'] == 'hg':
|
||||
if subprocess.call(['hg', 'clone', app['repo'], build_dir]) !=0:
|
||||
print "Hg clone failed"
|
||||
sys.exit(1)
|
||||
else:
|
||||
print "Invalid repo type " + app['repotype'] + " in " + app['id']
|
||||
sys.exit(1)
|
||||
@ -105,6 +109,12 @@ for app in apps:
|
||||
cwd=build_dir) != 0:
|
||||
print "Svn update failed"
|
||||
sys.exit(1)
|
||||
elif app['repotype'] == 'hg':
|
||||
if subprocess.call(['hg', 'checkout', thisbuild['commit']],
|
||||
cwd=build_dir) != 0:
|
||||
print "Hg checkout failed"
|
||||
sys.exit(1)
|
||||
|
||||
else:
|
||||
print "Invalid repo type " + app['repotype']
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user