[arch-commits] Commit in gnome-music/trunk (PKGBUILD notification.patch)
Jan de Groot
jgc at nymeria.archlinux.org
Tue Oct 15 15:35:32 UTC 2013
Date: Tuesday, October 15, 2013 @ 17:35:32
Author: jgc
Revision: 196597
upgpkg: gnome-music 3.10.1-2
Fix FS#37329
Added:
gnome-music/trunk/notification.patch
Modified:
gnome-music/trunk/PKGBUILD
--------------------+
PKGBUILD | 13 ++++++++++---
notification.patch | 21 +++++++++++++++++++++
2 files changed, 31 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-10-15 14:58:00 UTC (rev 196596)
+++ PKGBUILD 2013-10-15 15:35:32 UTC (rev 196597)
@@ -2,7 +2,7 @@
pkgname=gnome-music
pkgver=3.10.1
-pkgrel=1
+pkgrel=2
pkgdesc="Music player and management application"
arch=(i686 x86_64)
license=('GPL')
@@ -12,9 +12,16 @@
options=('!libtool')
groups=('gnome-extra')
install=gnome-music.install
-source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz)
-sha256sums=('3b75643e8a6e4d9b44b2572f0ddecfa0ec32affd9172c43a4bec909d15ac9d7c')
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz
+ notification.patch)
+sha256sums=('3b75643e8a6e4d9b44b2572f0ddecfa0ec32affd9172c43a4bec909d15ac9d7c'
+ '629ff5a277aecd97d3e1040d3eee70b8f011f3cf65c7fa8ec03fc22b829059fd')
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i ../notification.patch
+}
+
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --disable-schemas-compile
Added: notification.patch
===================================================================
--- notification.patch (rev 0)
+++ notification.patch 2013-10-15 15:35:32 UTC (rev 196597)
@@ -0,0 +1,21 @@
+From efb6a7c0db5c40207bf78bde9d0f9b32ac667e9b Mon Sep 17 00:00:00 2001
+From: Jack Gurulian <jack.gurulian at gmail.com>
+Date: Tue, 15 Oct 2013 10:54:47 +0000
+Subject: Correctly use AlbumArtCache.get_media_title in notifications
+
+---
+diff --git a/gnomemusic/notification.py b/gnomemusic/notification.py
+index 2c8485e..5775db1 100644
+--- a/gnomemusic/notification.py
++++ b/gnomemusic/notification.py
+@@ -78,7 +78,7 @@ class NotificationManager:
+ album = item.get_string(Grl.METADATA_KEY_ALBUM)\
+ or _("Unknown Album")
+
+- self._notification.update(item.get_title(),
++ self._notification.update(AlbumArtCache.get_media_title(item),
+ # TRANSLATORS: by refers to the artist, from to the album
+ _("by %s, from %s") % ('<b>' + artist + '</b>',
+ '<i>' + album + '</i>'),
+--
+cgit v0.9.2
More information about the arch-commits
mailing list