Hi Jonathan, many thanks for the report. On 2011-09-07 17:06, Jonathan Nieder wrote: > | # cupt --no-auto-remove build-dep git-buildpackage > [...] > | Configuration file `/etc/highlight/filetypes.conf' > | ==> Deleted (by you or by a script) since installation. > | ==> Package distributor has shipped an updated version. > | What would you like to do about it ? Your options are: > | Y or I : install the package maintainer's version > | N or O : keep your currently-installed version > | D : show the differences between the versions > | Z : start a shell to examine the situation > | The default action is to keep your current version. > | *** filetypes.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing > highlight-common (--install): > | EOF on stdin at conffile prompt > | Errors were encountered while processing: > | highlight-common > | E: pipe '/usr/bin/dpkg --install --no-triggers --force-bad-path > //var/cache/apt/archives/highlight-common_2.16-1_all.deb' execution failed: > exit code '1'
Ouch, yeah. > How about something along these lines (which is almost certainly broken; > take it as pseudocode)? This almost certainly works exactly as needed. > NEEDSWORK: Notice that this means cupt cannot pass an empty stream to > hooks any more --- if commandInput is empty, any hook expecting input > on stdin will sit waiting for input from the terminal. This would be > a problem for version-1 pre-install-packages hooks when packages are > only being configured and not unpacked. This a valid good point, yet easy to fix (in a subsequent commit): pre-install-packages hooks is useless when no packages are passed, so we only need just not to call that hook at all when there are no input. If you confirm that the patch you have attached works fine on your system, I'll apply it shortly. -- Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com C++/Perl developer, Debian Developer -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

