mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Fix handling of Triple-T 1.0.0 graphics
Unlike screenshots, the featureGraphic, icon, promoGraphic, and tvBanner
should be placed directly in the locale directory instead of in a
dedicated subdirectory (in the F-Droid metadata structure). For version
1.0.0 of the Triple-T structure this currently isn't done. Instead, the
graphics are treated as screenshots are.
To illustrate:
en-US/listing/icon/icon.png
en-US/listing/featureGraphic/play_store_feature_graphic.png
Should end up as:
en-US/icon.png
en-US/featureGraphic.png
But instead they currently end up as:
en-US/icon/icon.png
en-US/featureGraphic/play_store_feature_graphic.png
This patch should fix it.
It seems the erroneous behavior was introduced in
a4169484fd
Closes #1260
This commit is contained in:
parent
0a8f9ec5fc
commit
ffd4274503
1 changed files with 3 additions and 0 deletions
|
|
@ -1114,6 +1114,9 @@ def copy_triple_t_store_metadata(apps):
|
||||||
repofilename = os.path.basename(f)
|
repofilename = os.path.basename(f)
|
||||||
if segments[-2] == 'listing':
|
if segments[-2] == 'listing':
|
||||||
locale = segments[-3]
|
locale = segments[-3]
|
||||||
|
if dirname in GRAPHIC_NAMES:
|
||||||
|
repofilename = dirname + '.' + extension
|
||||||
|
dirname = ''
|
||||||
elif segments[-4] == 'listings': # v2.x
|
elif segments[-4] == 'listings': # v2.x
|
||||||
locale = segments[-3]
|
locale = segments[-3]
|
||||||
if dirname in tt_graphic_names:
|
if dirname in tt_graphic_names:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue