Small fixes, no change in behaviour

This commit is contained in:
Daniel Martí 2013-11-19 16:11:58 +01:00
parent f35d965d2a
commit 7d20141957

View file

@ -79,7 +79,7 @@ valuetypes = {
[ 'vercode' ]), [ 'vercode' ]),
'http' : FieldType("HTTP link", 'http' : FieldType("HTTP link",
r'^http[s]?://.+$', None, r'^http[s]?://', None,
[ "Web Site", "Source Code", "Issue Tracker", "Donate" ], []), [ "Web Site", "Source Code", "Issue Tracker", "Donate" ], []),
'bitcoin' : FieldType("Bitcoin address", 'bitcoin' : FieldType("Bitcoin address",
@ -672,7 +672,8 @@ def write_metadata(dest, app):
'preassemble', 'bindir', 'antcommand', 'novcheck'] 'preassemble', 'bindir', 'antcommand', 'novcheck']
def write_builditem(key, value): def write_builditem(key, value):
if key not in ['version', 'vercode', 'origlines']: if key in ['version', 'vercode', 'origlines']:
return
if key in valuetypes['bool'].attrs: if key in valuetypes['bool'].attrs:
if not value: if not value:
return return