chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97a637b
)
Don't crash if AM.xml has no application element
author
Daniel Martí
<mvdan@mvdan.cc>
Mon, 16 Nov 2015 15:21:19 +0000
(07:21 -0800)
committer
Daniel Martí
<mvdan@mvdan.cc>
Mon, 16 Nov 2015 15:21:19 +0000
(07:21 -0800)
fdroidserver/common.py
patch
|
blob
|
history
diff --git
a/fdroidserver/common.py
b/fdroidserver/common.py
index 77ee203f1de7e0d90453767e3f93f57eaa045c3a..8e0e651ff110964a6d0a024d6dc2c799c03ebd1d 100644
(file)
--- a/
fdroidserver/common.py
+++ b/
fdroidserver/common.py
@@
-968,6
+968,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 app is None:
+ continue
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"].encode('utf-8')