1
0
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:
Daniel Martí 2015-06-03 18:30:31 +02:00
parent 1b2354858b
commit dd37061b41

View File

@ -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: