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

Bug#480560: broken pipe error in log after successful install



On Saturday 10 May 2008, Joey Hess wrote:
> Setting up tasksel-data (2.73) ...
> Setting up tasksel (2.73) ...
> /usr/share/debootstrap/functions: line 5: echo: write error: Broken pipe
>
> Which is the smallyes function, which I'll bet never got to send
> anything.

It actually occurs multiple times in the log.

After looking at this a bit it seems that the smallyes function is both
broken and no longer required.

It is broken because it is called as:
$ grep smallyes /usr/share/debootstrap/scripts/sid
        smallyes '' | in_target dpkg --force-depends --install $(debfor "$@")
    smallyes '' |
    smallyes '' |
    smallyes '' |
    smallyes '' |

And the function itself has:
        YES="${1-y}"
which probably should have been:
        YES="${1:-y}"

As it is smallyes only echos an endless stream of newlines...

I ran an install with a 'return 0' at the top of smallyes, and that completed 
successfully, so it seems that probably we can just remove the use of smallyes, 
at least from the "sid" script.

Cheers,
FJP

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: