chiark / gitweb /
Forgot to actually use the real repotype variable
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 31 Oct 2013 16:35:13 +0000 (17:35 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 1 Nov 2013 12:55:37 +0000 (13:55 +0100)
fdroidserver/checkupdates.py

index 0006d17892676f2451f5d3265967d197eb5421fe..382d758ca21e9db995ebb8dcaa87fbcac0b53b06 100644 (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...
         vcs = common.getvcs(app['Repo Type'], app['Repo'], build_dir, sdk_path)
 
-        if vcs.repotype() == 'git':
+        if repotype == 'git':
             if branch:
                 branch = 'origin/'+branch
             vcs.gotorevision(branch)
-        elif vcs.repotype() == 'git-svn':
+        elif repotype == 'git-svn':
             vcs.gotorevision(branch)
-        elif vcs.repotype() == 'svn':
+        elif repotype == 'svn':
             vcs.gotorevision(None)
-        elif vcs.repotype() == 'hg':
+        elif repotype == 'hg':
             vcs.gotorevision(branch)
-        elif vcs.repotype() == 'bzr':
+        elif repotype == 'bzr':
             vcs.gotorevision(None)
 
         flavour = None