mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03:00
fix PEP8 "E201 whitespace after '(' or '[' or '{'"
This commit is contained in:
parent
998011d535
commit
4af2e0004f
4 changed files with 34 additions and 34 deletions
|
|
@ -122,63 +122,63 @@ class FieldType():
|
|||
valuetypes = {
|
||||
'int': FieldType("Integer",
|
||||
r'^[1-9][0-9]*$', None,
|
||||
[ 'FlattrID' ],
|
||||
[ 'vercode' ]),
|
||||
['FlattrID' ],
|
||||
['vercode' ]),
|
||||
|
||||
'http': FieldType("HTTP link",
|
||||
r'^http[s]?://', None,
|
||||
[ "Web Site", "Source Code", "Issue Tracker", "Donate" ], []),
|
||||
["Web Site", "Source Code", "Issue Tracker", "Donate" ], []),
|
||||
|
||||
'bitcoin': FieldType("Bitcoin address",
|
||||
r'^[a-zA-Z0-9]{27,34}$', None,
|
||||
[ "Bitcoin" ],
|
||||
[ ]),
|
||||
["Bitcoin" ],
|
||||
[]),
|
||||
|
||||
'litecoin': FieldType("Litecoin address",
|
||||
r'^L[a-zA-Z0-9]{33}$', None,
|
||||
[ "Litecoin" ],
|
||||
[ ]),
|
||||
["Litecoin" ],
|
||||
[]),
|
||||
|
||||
'dogecoin': FieldType("Dogecoin address",
|
||||
r'^D[a-zA-Z0-9]{33}$', None,
|
||||
[ "Dogecoin" ],
|
||||
[ ]),
|
||||
["Dogecoin" ],
|
||||
[]),
|
||||
|
||||
'Bool': FieldType("Boolean",
|
||||
['Yes', 'No'], None,
|
||||
[ "Requires Root" ],
|
||||
[ ]),
|
||||
["Requires Root" ],
|
||||
[]),
|
||||
|
||||
'bool': FieldType("Boolean",
|
||||
['yes', 'no'], None,
|
||||
[ ],
|
||||
[ 'submodules', 'oldsdkloc', 'forceversion', 'forcevercode',
|
||||
[],
|
||||
['submodules', 'oldsdkloc', 'forceversion', 'forcevercode',
|
||||
'novcheck' ]),
|
||||
|
||||
'Repo Type': FieldType("Repo Type",
|
||||
[ 'git', 'git-svn', 'svn', 'hg', 'bzr', 'srclib' ], None,
|
||||
[ "Repo Type" ],
|
||||
[ ]),
|
||||
['git', 'git-svn', 'svn', 'hg', 'bzr', 'srclib' ], None,
|
||||
["Repo Type" ],
|
||||
[]),
|
||||
|
||||
'archive': FieldType("Archive Policy",
|
||||
r'^[0-9]+ versions$', None,
|
||||
[ "Archive Policy" ],
|
||||
[ ]),
|
||||
["Archive Policy" ],
|
||||
[]),
|
||||
|
||||
'antifeatures': FieldType("Anti-Feature",
|
||||
[ "Ads", "Tracking", "NonFreeNet", "NonFreeDep", "NonFreeAdd", "UpstreamNonFree" ], ',',
|
||||
[ "AntiFeatures" ],
|
||||
[ ]),
|
||||
["Ads", "Tracking", "NonFreeNet", "NonFreeDep", "NonFreeAdd", "UpstreamNonFree" ], ',',
|
||||
["AntiFeatures" ],
|
||||
[]),
|
||||
|
||||
'autoupdatemodes': FieldType("Auto Update Mode",
|
||||
r"^(Version .+|None)$", None,
|
||||
[ "Auto Update Mode" ],
|
||||
[ ]),
|
||||
["Auto Update Mode" ],
|
||||
[]),
|
||||
|
||||
'updatecheckmodes': FieldType("Update Check Mode",
|
||||
r"^(Tags|Tags .+|RepoManifest|RepoManifest/.+|RepoTrunk|HTTP|Static|None)$", None,
|
||||
[ "Update Check Mode" ],
|
||||
[ ])
|
||||
["Update Check Mode" ],
|
||||
[])
|
||||
}
|
||||
|
||||
# Check an app's metadata information for integrity errors
|
||||
|
|
@ -753,7 +753,7 @@ def write_metadata(dest, app):
|
|||
mf.write('\n')
|
||||
for build in app['builds']:
|
||||
writecomments('build:' + build['version'])
|
||||
mf.write("Build:%s,%s\n" % ( build['version'], build['vercode']))
|
||||
mf.write("Build:%s,%s\n" % (build['version'], build['vercode']))
|
||||
|
||||
def write_builditem(key, value):
|
||||
if key in ['version', 'vercode', 'origlines', 'type']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue