mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 23:12:46 +03:00
Added support for bzr
This commit is contained in:
parent
9586452298
commit
4497d6c91e
2 changed files with 11 additions and 2 deletions
3
README
3
README
|
@ -26,6 +26,7 @@ To be able to auto-build packages, you're going to need:
|
||||||
*Ant
|
*Ant
|
||||||
*Ant Contrib Tasks (Debian package ant-contrib)
|
*Ant Contrib Tasks (Debian package ant-contrib)
|
||||||
*JavaCC (Debian package javacc)
|
*JavaCC (Debian package javacc)
|
||||||
|
*VCS clients: svn, git, hg, bzr
|
||||||
*A keystore for holding release keys. (Safe, secure and well backed up!)
|
*A keystore for holding release keys. (Safe, secure and well backed up!)
|
||||||
|
|
||||||
You then need to create a config.py (copy config.sample.py and follow the
|
You then need to create a config.py (copy config.sample.py and follow the
|
||||||
|
@ -84,7 +85,7 @@ The type of repository - for automatic building from source. If this is not
|
||||||
specified, automatic building is disabled for this application. Possible
|
specified, automatic building is disabled for this application. Possible
|
||||||
values are:
|
values are:
|
||||||
|
|
||||||
git, svn, hg
|
git, svn, hg, bzr
|
||||||
|
|
||||||
==Repo==
|
==Repo==
|
||||||
|
|
||||||
|
|
10
build.py
10
build.py
|
@ -120,6 +120,10 @@ for app in apps:
|
||||||
if subprocess.call(['hg', 'clone', repo, build_dir]) !=0:
|
if subprocess.call(['hg', 'clone', repo, build_dir]) !=0:
|
||||||
print "Hg clone failed"
|
print "Hg clone failed"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
elif app['repotype'] == 'bzr':
|
||||||
|
if subprocess.call(['bzr', 'branch', repo, build_dir]) !=0:
|
||||||
|
print "Bzr branch failed"
|
||||||
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
print "Invalid repo type " + app['repotype'] + " in " + app['id']
|
print "Invalid repo type " + app['repotype'] + " in " + app['id']
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
@ -163,7 +167,11 @@ for app in apps:
|
||||||
cwd=build_dir) != 0:
|
cwd=build_dir) != 0:
|
||||||
print "Hg checkout failed"
|
print "Hg checkout failed"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
elif app['repotype'] == 'bzr':
|
||||||
|
if subprocess.call(['bzr', 'revert', '-r', thisbuild['commit']],
|
||||||
|
cwd=build_dir) != 0:
|
||||||
|
print "Bzr revert failed"
|
||||||
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
print "Invalid repo type " + app['repotype']
|
print "Invalid repo type " + app['repotype']
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue