Hello community,

here is the log from the commit of package privoxy for openSUSE:Factory checked 
in at 2014-11-14 09:19:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/privoxy (Old)
 and      /work/SRC/openSUSE:Factory/.privoxy.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "privoxy"

Changes:
--------
--- /work/SRC/openSUSE:Factory/privoxy/privoxy.changes  2014-08-25 
11:04:45.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.privoxy.new/privoxy.changes     2014-11-14 
09:19:34.000000000 +0100
@@ -1,0 +2,5 @@
+Sun Nov 09 22:53:00 UTC 2014 - Led <[email protected]>
+
+- fix bashisms in pre script
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ privoxy.spec ++++++
--- /var/tmp/diff_new_pack.vDn0VG/_old  2014-11-14 09:19:36.000000000 +0100
+++ /var/tmp/diff_new_pack.vDn0VG/_new  2014-11-14 09:19:36.000000000 +0100
@@ -151,21 +151,22 @@
     # /usr/sbin/systemd-sysv-convert --save privoxy{d}
     find_service() {
       local runlevel
-      declare -i priority
       runlevel=$1
       priority=-1
       for l in /etc/rc.d/rc$runlevel.d/*; do
        test -f "$l" || continue
        initscript=$(basename $l)
-       if test ${initscript:0:1} != "S" || test ${initscript:3} != privoxyd; 
then
-         continue
-       fi
-       if test ${initscript:1:2} -ge 0 && test ${initscript:1:2} -le 99 &&
-          test ${initscript:1:2} -ge $priority; then
-         if test ${initscript:1:1} = 0; then
-           priority=${initscript:2:1}
+       case "$initscript" in
+         S??privoxyd) ;;
+         *) continue ;;
+       esac
+       n="$(echo "$initscript" | cut -b2,3)"
+       if [ $n -ge 0 -a $n -le 99 ] &&
+          [ $n -ge $priority ]; then
+         if [ ${n%%?} = 0 ]; then
+           priority=${n#?}
          else
-           priority=${initscript:1:2}
+           priority=$n
          fi
        fi
       done

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to