mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
make _ always be the gettext function, nothing else
This avoids hard bugs where the _() function gets overidden by a str or something else.
This commit is contained in:
parent
dd6d4b2012
commit
ffc91e301a
4 changed files with 7 additions and 7 deletions
|
|
@ -921,7 +921,7 @@ def _decode_bool(s):
|
|||
def parse_metadata(metadatapath, check_vcs=False):
|
||||
'''parse metadata file, optionally checking the git repo for metadata first'''
|
||||
|
||||
_, ext = fdroidserver.common.get_extension(metadatapath)
|
||||
_ignored, ext = fdroidserver.common.get_extension(metadatapath)
|
||||
accepted = fdroidserver.common.config['accepted_formats']
|
||||
if ext not in accepted:
|
||||
warn_or_exception('"%s" is not an accepted format, convert to: %s' % (
|
||||
|
|
@ -970,7 +970,7 @@ def parse_metadata(metadatapath, check_vcs=False):
|
|||
else:
|
||||
root_dir = '.'
|
||||
paths = fdroidserver.common.manifest_paths(root_dir, build.gradle)
|
||||
_, _, app.id = fdroidserver.common.parse_androidmanifests(paths, app)
|
||||
_ignored, _ignored, app.id = fdroidserver.common.parse_androidmanifests(paths, app)
|
||||
|
||||
return app
|
||||
|
||||
|
|
@ -1498,7 +1498,7 @@ def write_txt(mf, app):
|
|||
|
||||
|
||||
def write_metadata(metadatapath, app):
|
||||
_, ext = fdroidserver.common.get_extension(metadatapath)
|
||||
_ignored, ext = fdroidserver.common.get_extension(metadatapath)
|
||||
accepted = fdroidserver.common.config['accepted_formats']
|
||||
if ext not in accepted:
|
||||
warn_or_exception('Cannot write "%s", not an accepted format, use: %s'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue