[arch-commits] Commit in gpodder/repos/community-any (3 files)

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


    Date: Saturday, August 18, 2018 @ 21:05:22
  Author: bgyorgy
Revision: 372707

archrelease: copy trunk to community-any

Added:
  gpodder/repos/community-any/PKGBUILD
    (from rev 372706, gpodder/trunk/PKGBUILD)
  gpodder/repos/community-any/python37.patch
    (from rev 372706, gpodder/trunk/python37.patch)
Deleted:
  gpodder/repos/community-any/PKGBUILD

----------------+
 PKGBUILD       |   58 +++++++++++++++++++++++++++++++------------------------
 python37.patch |   39 ++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+), 25 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-18 21:05:19 UTC (rev 372706)
+++ PKGBUILD	2018-08-18 21:05:22 UTC (rev 372707)
@@ -1,25 +0,0 @@
-# $Id$
-# Maintainer: Balló György <ballogyor+arch at gmail dot com>
-# Contributor: Jan Magnus Brevik <janmbrevik at gmail.com>
-
-pkgname=gpodder
-pkgver=3.10.3
-pkgrel=2
-pkgdesc='Podcast client written in Python using GTK+'
-arch=(any)
-url='https://gpodder.github.io/'
-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')
-
-build() {
-  cd $pkgname-$pkgver
-  make messages
-}
-
-package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-}

Copied: gpodder/repos/community-any/PKGBUILD (from rev 372706, gpodder/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-08-18 21:05:22 UTC (rev 372707)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Jan Magnus Brevik <janmbrevik at gmail.com>
+
+pkgname=gpodder
+pkgver=3.10.3
+pkgrel=3
+pkgdesc='Podcast client written in Python using GTK+'
+arch=(any)
+url='https://gpodder.github.io/'
+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
+        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
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+}

Copied: gpodder/repos/community-any/python37.patch (from rev 372706, gpodder/trunk/python37.patch)
===================================================================
--- python37.patch	                        (rev 0)
+++ python37.patch	2018-08-18 21:05:22 UTC (rev 372707)
@@ -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