[arch-commits] Commit in gpodder/trunk (PKGBUILD python37.patch)

Balló György bgyorgy at archlinux.org
Sat Aug 18 21:05:19 UTC 2018


    Date: Saturday, August 18, 2018 @ 21:05:19
  Author: bgyorgy
Revision: 372706

upgpkg: gpodder 3.10.3-3

Fix for Python 3.7 (FS#59542)

Added:
  gpodder/trunk/python37.patch
Modified:
  gpodder/trunk/PKGBUILD

----------------+
 PKGBUILD       |   14 +++++++++++---
 python37.patch |   39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-18 20:48:22 UTC (rev 372705)
+++ PKGBUILD	2018-08-18 21:05:19 UTC (rev 372706)
@@ -4,7 +4,7 @@
 
 pkgname=gpodder
 pkgver=3.10.3
-pkgrel=2
+pkgrel=3
 pkgdesc='Podcast client written in Python using GTK+'
 arch=(any)
 url='https://gpodder.github.io/'
@@ -11,9 +11,17 @@
 license=(GPL3)
 depends=(gtk3 python-cairo python-dbus python-gobject python-mygpoclient python-podcastparser)
 makedepends=(intltool)
-source=($pkgname-$pkgver.tar.gz::http://github.com/gpodder/$pkgname/archive/$pkgver.tar.gz)
-sha256sums=('a53b23c605b3a92701aed3e318f0695ae2e4de1ba64692337e0a8f77253ebbb1')
+source=($pkgname-$pkgver.tar.gz::http://github.com/gpodder/$pkgname/archive/$pkgver.tar.gz
+        python37.patch)
+sha256sums=('a53b23c605b3a92701aed3e318f0695ae2e4de1ba64692337e0a8f77253ebbb1'
+            'ccd6c3c781e585b44e037c4ba7712477edd631b7982d93f546e2dbb081c7c8aa')
 
+prepare() {
+  cd $pkgname-$pkgver
+  # Fix for Python 3.7
+  patch -Np1 -i ../python37.patch
+}
+
 build() {
   cd $pkgname-$pkgver
   make messages

Added: python37.patch
===================================================================
--- python37.patch	                        (rev 0)
+++ python37.patch	2018-08-18 21:05:19 UTC (rev 372706)
@@ -0,0 +1,39 @@
+From 638ce45addd6dd9f456699bf0f66cdbec1dc78ab Mon Sep 17 00:00:00 2001
+From: Todd Zullinger <tmz at pobox.com>
+Date: Mon, 25 Jun 2018 10:28:17 -0400
+Subject: [PATCH] Avoid python-3.7 reserved keyword "async"
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The "async" keyword was added in python-3.7¹.  Using it throws
+SyntaxError exception.
+
+¹ https://docs.python.org/3.7/whatsnew/3.7.html
+  https://bugs.python.org/issue30406
+---
+ src/gpodder/gtkui/services.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/gpodder/gtkui/services.py b/src/gpodder/gtkui/services.py
+index e65634e9..69de8553 100644
+--- a/src/gpodder/gtkui/services.py
++++ b/src/gpodder/gtkui/services.py
+@@ -101,7 +101,7 @@ def replace_cover(self, channel, custom_url=None):
+         """
+         self.request_cover(channel, custom_url)
+ 
+-    def __get_cover(self, channel, url, async=False, avoid_downloading=False):
++    def __get_cover(self, channel, url, async_mode=False, avoid_downloading=False):
+         def get_filename():
+             return self.downloader.get_cover(channel.cover_file,
+                     url or channel.cover_url, channel.url, channel.title,
+@@ -131,7 +131,7 @@ def get_filename():
+                 logger.warn('Corrupt cover art on server, deleting', exc_info=True)
+                 util.delete_file(filename)
+ 
+-        if async:
++        if async_mode:
+             self.notify('cover-available', channel, pixbuf)
+         else:
+             return (channel.url, pixbuf)



More information about the arch-commits mailing list