mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +01:00
Use last found package name if none found
This commit is contained in:
parent
bc27ebcb82
commit
1fcb56b946
@ -933,7 +933,8 @@ def parse_androidmanifests(paths):
|
||||
gradle = path.endswith("gradle")
|
||||
version = None
|
||||
vercode = None
|
||||
package = None
|
||||
# Remember package name, may be defined separately from version+vercode
|
||||
package = max_package
|
||||
|
||||
for line in file(path):
|
||||
if not package:
|
||||
@ -958,6 +959,10 @@ def parse_androidmanifests(paths):
|
||||
if matches:
|
||||
vercode = matches.group(1)
|
||||
|
||||
# Better some package name than nothing
|
||||
if max_package is None:
|
||||
max_package = package
|
||||
|
||||
if max_vercode is None or (vercode is not None and vercode > max_vercode):
|
||||
max_version = version
|
||||
max_vercode = vercode
|
||||
|
Loading…
Reference in New Issue
Block a user