rpms/zynjacku/devel zynjacku-zero-plugins.patch, NONE, 1.1 zynjacku.spec, 1.4, 1.5

Orcan Ogetbil oget at fedoraproject.org
Fri Jan 22 23:17:24 UTC 2010


Author: oget

Update of /cvs/pkgs/rpms/zynjacku/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28988

Modified Files:
	zynjacku.spec 
Added Files:
	zynjacku-zero-plugins.patch 
Log Message:
* Fri Jan 22 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 5-4
- Don't crash when there are no plugins installed RHBZ#551480


zynjacku-zero-plugins.patch:
 zynjacku.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- NEW FILE zynjacku-zero-plugins.patch ---
diff -rupN zynjacku-5.old/zynjacku.py zynjacku-5/zynjacku.py
--- zynjacku-5.old/zynjacku.py	2009-06-05 12:40:05.000000000 -0400
+++ zynjacku-5/zynjacku.py	2010-01-22 17:59:56.000000000 -0500
@@ -2432,7 +2432,10 @@ class host:
 
             plugins = self.lv2db.getPluginList()
 
-            step = 1.0 / len(plugins)
+            if len(plugins) > 0:
+                step = 1.0 / len(plugins)
+            else:
+                step = 1.0
             progress = 0.0
 
             for uri in plugins:


Index: zynjacku.spec
===================================================================
RCS file: /cvs/pkgs/rpms/zynjacku/devel/zynjacku.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- zynjacku.spec	6 Aug 2009 03:50:03 -0000	1.4
+++ zynjacku.spec	22 Jan 2010 23:17:24 -0000	1.5
@@ -2,7 +2,7 @@
 
 Name:		zynjacku
 Version:	5
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	LV2 synths and plugins host
 Group:		Applications/Multimedia
 License:	GPLv2
@@ -15,6 +15,9 @@ Source3:	lv2rack.desktop
 # Correct lv2 path on 64bit systems:
 # https://gna.org/bugs/?13687
 Patch0:		%{name}-lv2path.patch
+# Don't crash when there are no plugins installed RHBZ#551480
+# Patch sent upstream via email
+Patch1:         %{name}-zero-plugins.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	gtk2-devel
@@ -44,6 +47,7 @@ lv2rack is a host for LV2 effect plugins
 %prep
 %setup -q
 %patch0 -p1 -b .lv2path
+%patch1 -p1 -b .noplugin
 
 %build
 export am_cv_python_pythondir=%{python_sitearch}
@@ -105,6 +109,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/icons/hicolor/72x72/apps/%{name}.png
 
 %changelog
+* Fri Jan 22 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 5-4
+- Don't crash when there are no plugins installed RHBZ#551480
+
 * Wed Aug 05 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 5-3
 - Update the .desktop file
 



More information about the scm-commits mailing list