mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +01:00
Small fixes to checkupdates
This commit is contained in:
parent
578e030ee6
commit
cf47e151f7
@ -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']:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user