mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 10:40:12 +02:00
Merge branch 'fix-ci' into 'master'
two small fixes for failing GitLab CI jobs See merge request fdroid/fdroidserver!1376
This commit is contained in:
commit
61925ac4f4
@ -170,6 +170,8 @@ arch_pip_install:
|
|||||||
- master@fdroid/fdroidserver
|
- master@fdroid/fdroidserver
|
||||||
script:
|
script:
|
||||||
- pacman --sync --sysupgrade --refresh --noconfirm gcc git grep python-pip python-virtualenv python-wheel tar
|
- pacman --sync --sysupgrade --refresh --noconfirm gcc git grep python-pip python-virtualenv python-wheel tar
|
||||||
|
- python -m venv venv
|
||||||
|
- source venv/bin/activate
|
||||||
- pip install -e .[test]
|
- pip install -e .[test]
|
||||||
- fdroid
|
- fdroid
|
||||||
- fdroid readmeta
|
- fdroid readmeta
|
||||||
|
@ -252,7 +252,7 @@ def resize_icon(iconpath, density):
|
|||||||
|
|
||||||
if any(length > size for length in im.size):
|
if any(length > size for length in im.size):
|
||||||
oldsize = im.size
|
oldsize = im.size
|
||||||
im.thumbnail((size, size), Image.ANTIALIAS)
|
im.thumbnail((size, size), Image.LANCZOS)
|
||||||
logging.debug("%s was too large at %s - new size is %s" % (
|
logging.debug("%s was too large at %s - new size is %s" % (
|
||||||
iconpath, oldsize, im.size))
|
iconpath, oldsize, im.size))
|
||||||
im.save(iconpath, "PNG", optimize=True,
|
im.save(iconpath, "PNG", optimize=True,
|
||||||
@ -1778,7 +1778,7 @@ def fill_missing_icon_densities(empty_densities, icon_filename, apk, repo_dir):
|
|||||||
|
|
||||||
size = dpi_to_px(density)
|
size = dpi_to_px(density)
|
||||||
|
|
||||||
im.thumbnail((size, size), Image.ANTIALIAS)
|
im.thumbnail((size, size), Image.LANCZOS)
|
||||||
im.save(icon_path, "PNG", optimize=True,
|
im.save(icon_path, "PNG", optimize=True,
|
||||||
pnginfo=BLANK_PNG_INFO, icc_profile=None)
|
pnginfo=BLANK_PNG_INFO, icc_profile=None)
|
||||||
empty_densities.remove(density)
|
empty_densities.remove(density)
|
||||||
|
Loading…
Reference in New Issue
Block a user