From c2196b2328abd0ce3e5c982e8aa0ec48013017b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 24 May 2013 15:42:23 +0200 Subject: [PATCH] Use vcs.repotype() to support RT:srclib in RM too --- fdroidserver/checkupdates.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index 3c157635..9ea6421b 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -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: