mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 18:31:07 +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
|
@ -824,7 +824,7 @@ def insert_localized_app_metadata(apps):
|
|||
locale = segments[-2]
|
||||
destdir = os.path.join('repo', packageName, locale)
|
||||
for f in glob.glob(os.path.join(root, d, '*.*')):
|
||||
_, extension = common.get_extension(f)
|
||||
_ignored, extension = common.get_extension(f)
|
||||
if extension in ALLOWED_EXTENSIONS:
|
||||
screenshotdestdir = os.path.join(destdir, d)
|
||||
os.makedirs(screenshotdestdir, mode=0o755, exist_ok=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue