Package: base-files
Version: 6.4
Severity: wishlist
Tags: patch
The 'Pre-Depends: awk' is superfluous. Package coreutils:
Essential: yes
Priority: required
already privides 'tail' and 'cut' (smaller canons, compared to 'awk') that
can do the same job at a lower cost :)
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.38-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages base-files depends on:
ii gawk [awk] 1:3.1.7.dfsg-5 GNU awk, a pattern scanning and pr
ii mawk [awk] 1.3.3-15 a pattern scanning and text proces
base-files recommends no packages.
base-files suggests no packages.
-- no debconf information
Cheers,
--
Cristian
--- ./debian/control.orig 2011-05-29 13:19:53.000000000 +0200
+++ ./debian/control 2011-05-29 13:20:30.000000000 +0200
@@ -7,7 +7,6 @@
Package: base-files
Provides: base
Architecture: any
-Pre-Depends: awk
Essential: yes
Priority: required
Replaces: base, miscutils, dpkg (<= 1.15.0)
--- ./debian/current-md5sums.orig 2011-05-29 13:21:48.000000000 +0200
+++ ./debian/current-md5sums 2011-05-29 13:23:33.000000000 +0200
@@ -1,3 +1,3 @@
#!/bin/sh
-sed -e "s&#OSNAME#&GNU/Linux&" etc/motd | awk 'NR > 2' | md5sum
-sed -e "s&#OSNAME#&GNU/Hurd&" etc/motd | awk 'NR > 2' | md5sum
+sed -e "s&#OSNAME#&GNU/Linux&" etc/motd | tail -n+3 | md5sum
+sed -e "s&#OSNAME#&GNU/Hurd&" etc/motd | tail -n+3 | md5sum
--- ./debian/postinst.in.orig 2011-05-29 13:23:53.000000000 +0200
+++ ./debian/postinst.in 2011-05-29 13:30:15.000000000 +0200
@@ -104,12 +104,12 @@
if [ "$1" = "configure" ] && [ "$2" != "" ]; then
if [ -f /etc/motd ]; then
- oldmd=`awk 'NR > 2' /etc/motd | md5sum | awk '{print $1}'`
- newmd=`awk 'NR > 2' /usr/share/base-files/motd | md5sum | awk '{print $1}'`
+ oldmd=`tail -n+3 /etc/motd | md5sum | cut -d' ' -f1`
+ newmd=`tail -n+3 /usr/share/base-files/motd | md5sum | cut -d' ' -f1`
if [ "$oldmd" != "$newmd" ]; then
if grep -q "$oldmd" /usr/share/base-files/motd.md5sums; then
- awk 'NR <= 2' /etc/motd > /etc/motd.new
- awk 'NR > 2' /usr/share/base-files/motd >> /etc/motd.new
+ head -n2 /etc/motd > /etc/motd.new
+ tail -n+3 /usr/share/base-files/motd >> /etc/motd.new
mv /etc/motd /etc/motd.old
mv /etc/motd.new /etc/motd
fi