mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Small fixes to checkupdates
This commit is contained in:
parent
578e030ee6
commit
cf47e151f7
2 changed files with 4 additions and 2 deletions
|
@ -139,6 +139,8 @@ def check_repomanifest(app, sdk_path, branch=None):
|
||||||
elif vcs.repotype() == 'bzr':
|
elif vcs.repotype() == 'bzr':
|
||||||
vcs.gotorevision(None)
|
vcs.gotorevision(None)
|
||||||
|
|
||||||
|
flavour = None
|
||||||
|
|
||||||
if len(app['builds']) > 0:
|
if len(app['builds']) > 0:
|
||||||
if 'subdir' in app['builds'][-1]:
|
if 'subdir' in app['builds'][-1]:
|
||||||
build_dir = os.path.join(build_dir, app['builds'][-1]['subdir'])
|
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)
|
paths = common.manifest_paths(build_dir, flavour)
|
||||||
|
|
||||||
version, vercode, package = common.parse_androidmanifest(paths)
|
version, vercode, package = common.parse_androidmanifests(paths)
|
||||||
if not package:
|
if not package:
|
||||||
return (None, "Couldn't find package ID")
|
return (None, "Couldn't find package ID")
|
||||||
if package != app['id']:
|
if package != app['id']:
|
||||||
|
|
|
@ -930,7 +930,7 @@ def parse_androidmanifests(paths):
|
||||||
|
|
||||||
for path in paths:
|
for path in paths:
|
||||||
|
|
||||||
gradle = path.endswith("build.gradle")
|
gradle = path.endswith("gradle")
|
||||||
version = None
|
version = None
|
||||||
vercode = None
|
vercode = None
|
||||||
package = None
|
package = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue