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:
9a70575
)
Simplify check_metadata
author
Daniel Martí
<mvdan@mvdan.cc>
Thu, 26 Jun 2014 10:39:42 +0000
(12:39 +0200)
committer
Daniel Martí
<mvdan@mvdan.cc>
Thu, 26 Jun 2014 10:39:42 +0000
(12:39 +0200)
fdroidserver/metadata.py
patch
|
blob
|
history
diff --git
a/fdroidserver/metadata.py
b/fdroidserver/metadata.py
index 9870207fd7e3e740e557e248d00da324153661e6..3e6ec83e3105f83a534d76d95ed058d1bef5f064 100644
(file)
--- a/
fdroidserver/metadata.py
+++ b/
fdroidserver/metadata.py
@@
-218,12
+218,10
@@
valuetypes = {
def check_metadata(info):
for v in valuetypes:
for field in v.fields:
- if field in info:
- v.check(info[field], info['id'])
+ v.check(info[field], info['id'])
for build in info['builds']:
for attr in v.attrs:
- if build[attr]:
- v.check(build[attr], info['id'])
+ v.check(build[attr], info['id'])
# Formatter for descriptions. Create an instance, and call parseline() with