Package: potool
Version: 0.5-2
Severity: minor
Tags: patch
postat and postat1 scripts use deprecated sort syntax:
postats ./wput.pot
[17:11]
sort: Warning: "+number" syntax is deprecated, please use "-k number"
./wput.pot - 21/136 ( 15%) -115
x(100%)x - 21/136 (15%) -115
This patch fix this issue, by using "-k number" sort syntax.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Versions of packages potool depends on:
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libglib2.0-0 2.12.4-2 The GLib library of C routines
potool recommends no packages.
-- no debconf information
--
Pavel Vinogradov
NixDev.Net, Senior Linux Developer
diff -urN potool-0.5.orig/scripts/postats potool-0.5/scripts/postats
--- potool-0.5.orig/scripts/postats 2000-12-12 22:37:14.000000000 +0300
+++ potool-0.5/scripts/postats 2007-03-25 17:12:50.000000000 +0400
@@ -19,4 +19,4 @@
nall=$((${nall}+${all}))
done
printf '%-24s - %5s/%-5s (%s%%) -%s\n' "x(100%)x" ${ntr} ${nall}
$((${ntr}*100/${nall})) $(($nall-$ntr))
-) | sort -nt'(' +1
+) | sort -nt'(' -k 1
diff -urN potool-0.5.orig/scripts/postats1 potool-0.5/scripts/postats1
--- potool-0.5.orig/scripts/postats1 2000-12-12 22:37:14.000000000 +0300
+++ potool-0.5/scripts/postats1 2007-03-25 17:12:55.000000000 +0400
@@ -21,4 +21,4 @@
nall=$((${nall}+${all}))
done
printf '%-24s - %5s/%3s/%-5s (%s%%) -%s\n' "x(100%)x" ${ntr} ${nfuzzy}
${nall} $((${ntr}*100/${nall})) $(($nall-$ntr))
-) | sort -nt'(' +1
+) | sort -nt'(' -k 1