r2121 - in glibc-package/trunk/debian: . script.in
Author: aurel32
Date: 2007-04-24 18:06:11 +0000 (Tue, 24 Apr 2007)
New Revision: 2121
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/script.in/nohwcap.sh
Log:
* script.in/nohwcap.sh: use sed instead of awk. Closes: #420799.
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2007-04-24 14:51:47 UTC (rev 2120)
+++ glibc-package/trunk/debian/changelog 2007-04-24 18:06:11 UTC (rev 2121)
@@ -6,10 +6,11 @@
* debian/debhelper.in/libc.NEWS: new file to warn user to upgrade
to a 2.6.1 or later kernel before upgrading the glibc.
* debian/script.in/kernelcheck.sh: improve the kernel error message.
- * New Tamil debconf translation, by Tirumurti Vasudevan. Closes:
+ * New Tamil debconf translation, by Tirumurti Vasudevan. Closes:
#420755.
+ * script.in/nohwcap.sh: use sed instead of awk. Closes: #420799.
- -- Aurelien Jarno <aurel32@debian.org> Tue, 24 Apr 2007 16:50:44 +0200
+ -- Aurelien Jarno <aurel32@debian.org> Tue, 24 Apr 2007 20:06:01 +0200
glibc (2.5-4) unstable; urgency=low
Modified: glibc-package/trunk/debian/script.in/nohwcap.sh
===================================================================
--- glibc-package/trunk/debian/script.in/nohwcap.sh 2007-04-24 14:51:47 UTC (rev 2120)
+++ glibc-package/trunk/debian/script.in/nohwcap.sh 2007-04-24 18:06:11 UTC (rev 2121)
@@ -24,7 +24,7 @@
all_upgraded=yes
if [ -n "$hwcappkgs" ]; then
for pkg in $hwcappkgs ; do
- ver=$(dpkg -l $pkg 2>/dev/null | awk '/^i/ { print $3 }')
+ ver=$(dpkg -l $pkg 2>/dev/null | sed -e '/^i/!d;' -e "s/^i.\s\+$pkg\s\+//;s/\s.*//g")
if [ -n "$ver" ] && [ "$ver" != "CURRENT_VER" ]; then
all_upgraded=no
fi
Reply to: