1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 02:50:12 +01:00

Forgot to actually use the real repotype variable

This commit is contained in:
Daniel Martí 2013-10-31 17:35:13 +01:00
parent f07cb7e90f
commit 48e5f61391

View File

@ -159,17 +159,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 vcs.repotype() == 'git': if repotype == 'git':
if branch: if branch:
branch = 'origin/'+branch branch = 'origin/'+branch
vcs.gotorevision(branch) vcs.gotorevision(branch)
elif vcs.repotype() == 'git-svn': elif repotype == 'git-svn':
vcs.gotorevision(branch) vcs.gotorevision(branch)
elif vcs.repotype() == 'svn': elif repotype == 'svn':
vcs.gotorevision(None) vcs.gotorevision(None)
elif vcs.repotype() == 'hg': elif repotype == 'hg':
vcs.gotorevision(branch) vcs.gotorevision(branch)
elif vcs.repotype() == 'bzr': elif repotype == 'bzr':
vcs.gotorevision(None) vcs.gotorevision(None)
flavour = None flavour = None