mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
Don't crash if an <application> has no android:label
This commit is contained in:
parent
1b2354858b
commit
dd37061b41
@ -913,6 +913,8 @@ def fetch_real_name(app_dir, flavours):
|
||||
logging.debug("fetch_real_name: Checking manifest at " + path)
|
||||
xml = parse_xml(path)
|
||||
app = xml.find('application')
|
||||
if "{http://schemas.android.com/apk/res/android}label" not in app.attrib:
|
||||
continue
|
||||
label = app.attrib["{http://schemas.android.com/apk/res/android}label"]
|
||||
result = retrieve_string(app_dir, label)
|
||||
if result:
|
||||
|
Loading…
Reference in New Issue
Block a user