mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
Don't crash if an <application> has no android:label
This commit is contained in:
parent
1b2354858b
commit
dd37061b41
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue