control: tags -1 patch pending

diff -Nru fdroidserver-2.2.1/debian/changelog 
fdroidserver-2.2.1/debian/changelog
--- fdroidserver-2.2.1/debian/changelog 2023-03-09 15:11:34.000000000 +0100
+++ fdroidserver-2.2.1/debian/changelog 2023-07-20 08:54:25.000000000 +0200
@@ -1,3 +1,13 @@
+fdroidserver (2.2.1-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  [ Vladimir Petko <vladimir.pe...@canonical.com> ]
+  * debian/patches/image-alias-deprecation.patch:
+    - cherry-pick upstream fix for new pillow 10.0.0
+      (Closes: #1040629, LP: #2028117)
+
+ -- Gianfranco Costamagna <locutusofb...@debian.org>  Thu, 20 Jul 2023 
08:54:25 +0200
+
 fdroidserver (2.2.1-1) unstable; urgency=medium
* New upstream version 2.2.1
diff -Nru fdroidserver-2.2.1/debian/patches/image-alias-deprecation.patch 
fdroidserver-2.2.1/debian/patches/image-alias-deprecation.patch
--- fdroidserver-2.2.1/debian/patches/image-alias-deprecation.patch     
1970-01-01 01:00:00.000000000 +0100
+++ fdroidserver-2.2.1/debian/patches/image-alias-deprecation.patch     
2023-07-20 08:54:23.000000000 +0200
@@ -0,0 +1,28 @@
+Description: do not use deprecated Image.ANTIALIAS attribute
+ The ANTIALIAS alias was removed in Pillow 10.0.0:
+ https://pillow.readthedocs.io/en/stable/deprecations.html
+Author: Hans-Christoph Steiner <h...@eds.org>
+Origin: upstream
+Bug: 
https://github.com/f-droid/fdroidserver/commit/132e953c8c9f7d709586442aee6ff474cfa8fa18
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040629
+Last-Update: 2023-07-19
+--- a/fdroidserver/update.py
++++ b/fdroidserver/update.py
+@@ -250,7 +250,7 @@
+
+         if any(length > size for length in im.size):
+             oldsize = im.size
+-            im.thumbnail((size, size), Image.ANTIALIAS)
++            im.thumbnail((size, size), Image.Resampling.LANCZOS)
+             logging.debug("%s was too large at %s - new size is %s" % (
+                 iconpath, oldsize, im.size))
+             im.save(iconpath, "PNG", optimize=True,
+@@ -1757,7 +1757,7 @@
+
+             size = dpi_to_px(density)
+
+-            im.thumbnail((size, size), Image.ANTIALIAS)
++            im.thumbnail((size, size), Image.Resampling.LANCZOS)
+             im.save(icon_path, "PNG", optimize=True,
+                     pnginfo=BLANK_PNG_INFO, icc_profile=None)
+             empty_densities.remove(density)
diff -Nru fdroidserver-2.2.1/debian/patches/series 
fdroidserver-2.2.1/debian/patches/series
--- fdroidserver-2.2.1/debian/patches/series    2023-03-09 15:11:34.000000000 
+0100
+++ fdroidserver-2.2.1/debian/patches/series    2023-07-20 08:54:16.000000000 
+0200
@@ -1,3 +1,4 @@
 debian-java-detection.patch
 ignore-irrelevant-test.patch
 scanner-tests-need-dexdump.patch
+image-alias-deprecation.patch

Reply via email to