Re: 1.3 install report
> From: Philippe Troin <phil@fifi.org>
> > [1] When doing an [A]cess in dselect, I've got error messages from
> > the shell about a find command with bad syntax.
>
> Can you run "script" and see if it catches that output, please?
I noticed this a little while ago. It is not a syntax error, it is caused by piping the output of
find ... -name '*.deb' (from /usr/lib/dpkg/methods/disk/setup perhaps ?)
into head -1, because the head terminates and so kills the find with a ``Broken Pipe''. I'm not sure if there are any more places this occurs, but the following patch should fix setup.
Cheers, Phil.
--- /usr/lib/dpkg/methods/disk/setup Wed Feb 12 05:39:08 1997
+++ /tmp/setup Mon Apr 14 09:19:24 1997
@@ -429,8 +429,8 @@
echo "\`$2' does not exist."
return
fi
- if ! find "$mountpoint$2" -follow -name '*.deb' -print \
- 2>/dev/null | head -1 | grep . >/dev/null
+ if ! { find "$mountpoint$2" -follow -name '*.deb' -print \
+ | head -1 | grep . ; } >/dev/null 2>&1
then
echo "\`$2' does not contain any *.deb packages. Hmmpf."
return
Reply to: