Received: (at submit) by bugs.debian.org; 11 Jun 1997 09:06:19 +0000 Received: (qmail 22683 invoked from network); 11 Jun 1997 09:06:18 -0000 Received: from Q.cistron.nl (miquels@195.64.65.23) by master.debian.org with SMTP; 11 Jun 1997 09:06:17 -0000 Received: (from miquels@localhost) by Q.cistron.nl (8.8.5/8.8.5) id LAA08534; Wed, 11 Jun 1997 11:04:44 +0200 Message-ID: <19970611110444.61413@cistron.nl> Date: Wed, 11 Jun 1997 11:04:44 +0200 From: Miquel van Smoorenburg To: submit@bugs.debian.org Subject: dpkg "setup" method prints spurious messages Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Description: Main Body X-Mailer: Mutt 0.71 Package: dpkg Version: 1.4.0.8 When used with bash-2.0, the dpkg disk setup method prints spurious messages: /usr/lib/dpkg/methods/disk/setup: line 8: 16632 Broken pipe find "$mountpoint$2" -follow -name '*.deb' -print 2>/dev/null 16633 Done | head -1 16634 Done | grep . >/dev/null Using `/pub/debian/stable/binary-i386' as main binary dir. Using `/pub/debian/stable/binary-i386/Packages.gz' for main. Using `/pub/debian/contrib/binary-i386' as contrib binary dir. Using `/pub/debian/contrib/binary-i386/Packages.gz' for contrib. /usr/lib/dpkg/methods/disk/setup: line 8: 16638 Broken pipe find "$mountpoint$2" -follow -name '*.deb' -print 2>/dev/null 16639 Done | head -1 16640 Done | grep . >/dev/null Using `/pub/debian/non-free/binary-i386' as non-free binary dir. Using `/pub/debian/non-free/binary-i386/Packages.gz' for non-free. This is probably a bug in bash-2.0, but a fast way to fix it in the setup shell script is like this: --- methods/disk/setup.orig Wed Jun 11 11:35:57 1997 +++ methods/disk/setup Wed Jun 11 12:01:53 1997 @@ -429,12 +429,15 @@ echo "\`$2' does not exist." return fi + exec 3>&2 2>/dev/null if ! find "$mountpoint$2" -follow -name '*.deb' -print \ 2>/dev/null | head -1 | grep . >/dev/null + exec 2>&3 3>&- then echo "\`$2' does not contain any *.deb packages. Hmmpf." return fi + exec 2>&3 3>&- echo "Using \`$2' as $1 binary dir." this_binary="$2" } It is possible that the other methods have a similar bug, but I can't test this at the moment. It would be nice to fix this in Debian-1.3.1 Mike. -- | Miquel van Smoorenburg | "I need more space" "Well, why not move to Texas" | | miquels@cistron.nl | "No, on my account, stupid." "Stupid? Uh-oh.." | | PGP fingerprint: FE 66 52 4F CD 59 A5 36 7F 39 8B 20 F1 D6 74 02 |