mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-07 07:50:28 +03:00
git-svn improvements
New features: * Support for Tags, which allow their use on recipes * Add Tags Update Check Mode support to git-svn * Add RepoManifest Update Check Mode support to git-svn
This commit is contained in:
parent
fdc04fe64e
commit
3abfa5714c
2 changed files with 33 additions and 16 deletions
|
|
@ -45,12 +45,15 @@ def check_tags(app, sdk_path):
|
|||
|
||||
build_dir = 'build/' + app['id']
|
||||
|
||||
if app['Repo Type'] != 'git':
|
||||
return (None, 'Tags update mode only works for git repositories currently')
|
||||
if app['Repo Type'] not in ('git', 'git-svn'):
|
||||
return (None, 'Tags update mode only works for git and git-svn repositories currently')
|
||||
|
||||
# Set up vcs interface and make sure we have the latest code...
|
||||
vcs = common.getvcs(app['Repo Type'], app['Repo'], build_dir, sdk_path)
|
||||
vcs.gotorevision('origin/master')
|
||||
if app['Repo Type'] == 'git':
|
||||
vcs.gotorevision('origin/master')
|
||||
elif app['Repo Type'] == 'git-svn':
|
||||
vcs.gotorevision('trunk')
|
||||
|
||||
if len(app['builds']) == 0:
|
||||
return (None, "Can't use Tags with no builds defined")
|
||||
|
|
@ -100,12 +103,15 @@ def check_repomanifest(app, sdk_path):
|
|||
|
||||
build_dir = 'build/' + app['id']
|
||||
|
||||
if app['Repo Type'] != 'git':
|
||||
return (None, 'RepoManifest update mode only works for git repositories currently')
|
||||
if app['Repo Type'] not in ('git', 'git-svn'):
|
||||
return (None, 'RepoManifest update mode only works for git and git-svn repositories currently')
|
||||
|
||||
# Set up vcs interface and make sure we have the latest code...
|
||||
vcs = common.getvcs(app['Repo Type'], app['Repo'], build_dir, sdk_path)
|
||||
vcs.gotorevision('origin/master')
|
||||
if app['Repo Type'] == 'git':
|
||||
vcs.gotorevision('origin/master')
|
||||
elif app['Repo Type'] == 'git-svn':
|
||||
vcs.gotorevision('trunk')
|
||||
|
||||
if len(app['builds']) == 0:
|
||||
return (None, "Can't use RepoManifest with no builds defined")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue