From 8cbad5ff9e3454f3667f6d54db57884538df48a1 Mon Sep 17 00:00:00 2001 From: Christoph Mende Date: Fri, 27 Jun 2014 16:43:25 +0000 Subject: 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 --- .../sonata/files/sonata-1.6.2.1-mpd18-compat.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 media-sound/sonata/files/sonata-1.6.2.1-mpd18-compat.patch (limited to 'media-sound/sonata/files') 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 + + 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 -- cgit v1.2.3-65-gdbad