1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

checkupdates: check packages in AM.xml files too

This commit is contained in:
Daniel Martí 2015-11-01 12:35:36 +01:00
parent d17da074e9
commit c8627764e3

View File

@ -1070,7 +1070,9 @@ def parse_androidmanifests(paths, app):
else:
xml = parse_xml(path)
if "package" in xml.attrib:
package = xml.attrib["package"].encode('utf-8')
s = xml.attrib["package"].encode('utf-8')
if app_matches_packagename(app, s):
package = s
if "{http://schemas.android.com/apk/res/android}versionName" in xml.attrib:
version = xml.attrib["{http://schemas.android.com/apk/res/android}versionName"].encode('utf-8')
base_dir = os.path.dirname(path)