mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +01:00
Use vcs.repotype() to support RT:srclib in RM too
This commit is contained in:
parent
dc789a7ac9
commit
c2196b2328
@ -107,17 +107,17 @@ def check_repomanifest(app, sdk_path, branch=None):
|
||||
|
||||
# Set up vcs interface and make sure we have the latest code...
|
||||
vcs = common.getvcs(app['Repo Type'], app['Repo'], build_dir, sdk_path)
|
||||
if app['Repo Type'] == 'git':
|
||||
if vcs.repotype() == 'git':
|
||||
if branch:
|
||||
vcs.gotorevision('origin/'+branch)
|
||||
else:
|
||||
vcs.gotorevision('origin/master')
|
||||
pass
|
||||
elif app['Repo Type'] == 'git-svn':
|
||||
elif vcs.repotype() == 'git-svn':
|
||||
vcs.gotorevision('trunk')
|
||||
elif app['Repo Type'] == 'svn':
|
||||
elif vcs.repotype() == 'svn':
|
||||
vcs.gotorevision(None)
|
||||
elif app['Repo Type'] == 'hg':
|
||||
elif vcs.repotype() == 'hg':
|
||||
if branch:
|
||||
vcs.gotorevision(branch)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user