mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 14:30:11 +01:00
A bit more None magic to fix some UCMs
This commit is contained in:
parent
25268a728d
commit
2686fa6faa
@ -893,14 +893,20 @@ def parse_androidmanifests(paths, ignoreversions=None):
|
||||
if matches:
|
||||
vercode = matches.group(1)
|
||||
|
||||
# Better some package name than nothing
|
||||
if max_package is None:
|
||||
# Always grab the package name and version name in case they are not
|
||||
# together with the highest version code
|
||||
if max_package is None and package is not None:
|
||||
max_package = package
|
||||
if max_version is None and version is not None:
|
||||
max_version = version
|
||||
|
||||
if max_vercode is None or (vercode is not None and vercode > max_vercode):
|
||||
if not ignoresearch or not ignoresearch(version):
|
||||
if version is not None:
|
||||
max_version = version
|
||||
if vercode is not None:
|
||||
max_vercode = vercode
|
||||
if package is not None:
|
||||
max_package = package
|
||||
else:
|
||||
max_version = "Ignore"
|
||||
|
Loading…
Reference in New Issue
Block a user