From 4b392fddf41eef169fe43b7ad1523fbb36ba52d6 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Oct 07 2013 03:04:06 +0000 Subject: Read negative value as integer in case position has such value (bug 1014295) --- diff --git a/alexandria-0.6.9-negative-value.patch b/alexandria-0.6.9-negative-value.patch new file mode 100644 index 0000000..07e53cf --- /dev/null +++ b/alexandria-0.6.9-negative-value.patch @@ -0,0 +1,11 @@ +--- alexandria-0.6.9/lib/alexandria/preferences.rb.negative 2011-11-19 23:48:14.000000000 +0900 ++++ alexandria-0.6.9/lib/alexandria/preferences.rb 2013-10-07 11:56:16.598198605 +0900 +@@ -326,7 +326,7 @@ + return true + elsif value == "false" # bool + return false +- elsif value =~ /^[0-9]+$/ # int ++ elsif value =~ /^-?[0-9]+$/ # int + return value.to_i + elsif value =~ /^\[(.*)\]$/ # list (assume of type String) + return $1.split(",") diff --git a/alexandria.spec b/alexandria.spec index e938578..06cbdb1 100644 --- a/alexandria.spec +++ b/alexandria.spec @@ -8,7 +8,7 @@ %undefine minorver %undefine ifpre -%define fedorarel 6 +%define fedorarel 7 %define rel %{?ifpre:0.}%{fedorarel}%{?minorver:.%minorver} @@ -86,6 +86,9 @@ Patch25: alexandria-0.6.9-newbook-nothread.patch # Make z3950 provider work # ZOOM::Connection.count must be string Patch26: alexandria-0.6.9-z3950-zoom-count.patch +# Read negative value as integer in case position has such value +# (bug 1014295) +Patch27: alexandria-0.6.9-negative-value.patch BuildArch: noarch @@ -173,6 +176,7 @@ Alexandria is a GNOME application to help you manage your book collection. %patch24 -p1 -b .iconv %patch25 -p1 -b .nothread %patch26 -p1 -b .z3950_count +%patch27 -p1 -b .negative # Embed Fedora EVR %{__sed} -i.evr \ @@ -269,6 +273,10 @@ exit 0 %{_datadir}/icons/hicolor/*/apps/%{name}.* %changelog +* Mon Oct 7 2013 Mamoru TASAKA - 0.6.9-7 +- Read negative value as integer in case position has such value + (bug 1014295) + * Wed Aug 21 2013 Mamoru TASAKA - 0.6.9-6 - Change ZOOM::Connection.count to string to make z3950 provider work again