[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#70685: apt echoes too much info during install, patch included



Package: apt
Version: 0.3.19
Severity: wishlist

policy 2.3.8 states "package installation scripts should avoid producing
output which is unnecessary for the user to see".  Apt's messages during
install are of no interest to the user and are swept away during the install
of many packages.  These messages are also not shown when using gui tools
like the GTK apt front end.

If you feel these messages are truly important, please use debconf.

diff -pruN apt-0.3.19/debian/postinst apt-0.3.19.patch/debian/postinst
--- apt-0.3.19/debian/postinst	Sun Feb 13 01:51:20 2000
+++ apt-0.3.19.patch/debian/postinst	Wed Aug 30 23:32:57 2000
@@ -12,8 +12,6 @@ set -e
 
 create_apt_conf ()
 {
- echo "/etc/apt/sources.list does not exist; creating a default setup."
-
  cp /usr/doc/apt/examples/sources.list /etc/apt/sources.list
 }
  
@@ -33,9 +31,6 @@ case "$1" in
 	       #
 	       if [ ! -f /etc/apt/sources.list ]; then
 	         create_apt_conf
-		 echo
-		 echo "If you wish to change the default sites from which APT fetches Debian"
-		 echo "packages, please edit the file /etc/apt/sources.list."
 	       else
 	         check_apt_conf
 	       fi
diff -pruN apt-0.3.19/debian/postrm apt-0.3.19.patch/debian/postrm
--- apt-0.3.19/debian/postrm	Mon Dec 21 21:06:44 1998
+++ apt-0.3.19.patch/debian/postrm	Wed Aug 30 23:33:19 2000
@@ -10,11 +10,7 @@
 
 case "$1" in
        purge)
-		echo -n "Removing APT cache and state files... "
-		echo -n "/var/cache/apt"
 		rm -rf /var/cache/apt
-		echo -n ", /var/state/apt"
 		rm -rf /var/state/apt
-		echo ". Done."
 esac
 

-- System Information
Debian Release: woody
Architecture: i386
Kernel: Linux geisha 2.2.15 #1 SMP Mon Jun 26 14:24:13 PDT 2000 i686

Versions of packages apt depends on:
ii  libc6                        2.1.3-10    GNU C Library: Shared libraries an
ii  libstdc++2.10                1:2.95.2-14 The GNU stdc++ library            




Reply to: