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

Bug#63991: apt: overzealously reading standard input



Package: apt
Version: 0.3.18
Severity: normal

I'm doing now a disk for automated install of several servers around here...
some packages need user interaction while installing (not using debconf
yet), so the idea is to pipe them some answers thru apt-get install. 
But it seems apt reads its standard input even when it shouldn't. When the
first package didn't install like this, I changed the echo "something" to
yes "something" so it really gets it... now I found out that it takes a
really long time to install such a package... stracing apt reveals that apt
itself reads the standard input even when it shouldn't expect any
input from the user....
in case of yes '
' (use default answers) strace shows read("\n") in an almost infinite
loop... 
so why does apt read standard input when it doesn't really need to ?

-- System Information
Debian Release: 2.2
Kernel Version: Linux thunderchild 2.2.15pre19 #1 Wed Apr 26 14:56:01 CEST 2000 i686 unknown

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



Reply to: