summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2014-06-27 16:43:25 +0000
committerChristoph Mende <angelos@gentoo.org>2014-06-27 16:43:25 +0000
commit8cbad5ff9e3454f3667f6d54db57884538df48a1 (patch)
treeaa5e24f165bf6d7772f9f339b8c1bf999e062186 /media-sound/sonata/files
parentCorrect glade configure parameter (bug #514828) (diff)
downloadhistorical-8cbad5ff9e3454f3667f6d54db57884538df48a1.tar.gz
historical-8cbad5ff9e3454f3667f6d54db57884538df48a1.tar.bz2
historical-8cbad5ff9e3454f3667f6d54db57884538df48a1.zip
Fix compatibility with mpd-0.18 (bug #512756), thanks to Israel G. Lugo
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0x84F20B43
Diffstat (limited to 'media-sound/sonata/files')
-rwxr-xr-xmedia-sound/sonata/files/sonata-1.6.2.1-mpd18-compat.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/media-sound/sonata/files/sonata-1.6.2.1-mpd18-compat.patch b/media-sound/sonata/files/sonata-1.6.2.1-mpd18-compat.patch
new file mode 100755
index 000000000000..8d10b07f4f8f
--- /dev/null
+++ b/media-sound/sonata/files/sonata-1.6.2.1-mpd18-compat.patch
@@ -0,0 +1,19 @@
+2014-06-08 Israel G. Lugo <israel.lugo@lugosys.com>
+
+ Compatibility fix for mpd 0.18.
+
+ * sonata/main.py (Base.update_status): Properly handle missing xfade
+ property.
+
+diff -durNp sonata-1.6.2.1/sonata/main.py sonata-1.6.2.1-mpd0.18/sonata/main.py
+--- sonata-1.6.2.1/sonata/main.py 2009-09-21 22:02:16.000000000 +0100
++++ sonata-1.6.2.1-mpd0.18/sonata/main.py 2014-06-08 15:10:08.586659487 +0100
+@@ -989,7 +989,7 @@ class Base(object):
+ self.repeatmenu.set_active(self.status['repeat'] == '1')
+ if not self.last_random or self.last_random != self.status['random']:
+ self.randommenu.set_active(self.status['random'] == '1')
+- if self.status['xfade'] == '0':
++ if self.status.get('xfade', '0') == '0':
+ self.config.xfade_enabled = False
+ else:
+ self.config.xfade_enabled = True