mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Use vcs.repotype() to support RT:srclib in RM too
This commit is contained in:
parent
dc789a7ac9
commit
c2196b2328
1 changed files with 4 additions and 4 deletions
|
|
@ -107,17 +107,17 @@ def check_repomanifest(app, sdk_path, branch=None):
|
||||||
|
|
||||||
# Set up vcs interface and make sure we have the latest code...
|
# 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 = common.getvcs(app['Repo Type'], app['Repo'], build_dir, sdk_path)
|
||||||
if app['Repo Type'] == 'git':
|
if vcs.repotype() == 'git':
|
||||||
if branch:
|
if branch:
|
||||||
vcs.gotorevision('origin/'+branch)
|
vcs.gotorevision('origin/'+branch)
|
||||||
else:
|
else:
|
||||||
vcs.gotorevision('origin/master')
|
vcs.gotorevision('origin/master')
|
||||||
pass
|
pass
|
||||||
elif app['Repo Type'] == 'git-svn':
|
elif vcs.repotype() == 'git-svn':
|
||||||
vcs.gotorevision('trunk')
|
vcs.gotorevision('trunk')
|
||||||
elif app['Repo Type'] == 'svn':
|
elif vcs.repotype() == 'svn':
|
||||||
vcs.gotorevision(None)
|
vcs.gotorevision(None)
|
||||||
elif app['Repo Type'] == 'hg':
|
elif vcs.repotype() == 'hg':
|
||||||
if branch:
|
if branch:
|
||||||
vcs.gotorevision(branch)
|
vcs.gotorevision(branch)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue