On Fri, 2006-10-20 at 01:38 +0200, Axel Thimm wrote:
On Thu, Oct 19, 2006 at 12:38:25PM -0400, Bill Nottingham wrote:
> Thorsten Leemhuis (fedora(a)leemhuis.info) said:
> > I strongly agree with the last sentence. Should we write it somewhere
> > into the policies that %pre/%post script should never print stuff?
Yes. But that means filing a bug against glibc for visibly restarting
ssh for example.
> Honestly, I thought it was already part of the policies. %pre/%post
> can not be interactive.
I think this is already strongly deprecated at the pure rpm level. We
could add a note on this in the guide, but it shouldn't suggest we
really ever had another choice. :)
Just as a side note: It's been a debate for several years now that
dpkg allows licenses to be displayed in non-batch mode, and that rpm
only has batch mode and thus no means for licenses to be
displayed. Not that it's actually a drawback.
In general most higher level rpm tool assume output on stderr/stdout
from rpm packages to be an error and present it that way.
only b/c we have no other choice.
If we could get rpm to be silent and have all of the messages (stderr or
stdout) be presented back to us as part of the callback I think most of
us would be quite happy. If only b/c it would mean we would then have
the option of echoing it back to the user, saving it to a log or both.
-sv