chiark / gitweb /
Small fixes to checkupdates
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 13 Aug 2013 12:51:40 +0000 (14:51 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 13 Aug 2013 12:51:40 +0000 (14:51 +0200)
fdroidserver/checkupdates.py
fdroidserver/common.py

index 939986665fa097013106cda4da91fd39d3352299..ee80bca69291fdc9feb364c9feff1d2a4cbfa2b1 100644 (file)
@@ -139,6 +139,8 @@ def check_repomanifest(app, sdk_path, branch=None):
         elif vcs.repotype() == 'bzr':
             vcs.gotorevision(None)
 
+        flavour = None
+
         if len(app['builds']) > 0:
             if 'subdir' in app['builds'][-1]:
                 build_dir = os.path.join(build_dir, app['builds'][-1]['subdir'])
@@ -150,7 +152,7 @@ def check_repomanifest(app, sdk_path, branch=None):
 
         paths = common.manifest_paths(build_dir, flavour)
 
-        version, vercode, package = common.parse_androidmanifest(paths)
+        version, vercode, package = common.parse_androidmanifests(paths)
         if not package:
             return (None, "Couldn't find package ID")
         if package != app['id']:
index ac1218b522e605b8b0743d9b942622add83504f8..528a9dbf3e5abdcd50c93d6d6e1558cdd2b3512c 100644 (file)
@@ -930,7 +930,7 @@ def parse_androidmanifests(paths):
 
     for path in paths:
 
-        gradle = path.endswith("build.gradle")
+        gradle = path.endswith("gradle")
         version = None
         vercode = None
         package = None