On Wed, Mar 17, 2004, Michael Schloh von Bennewitz wrote:

> On Wed, Mar 17, 2004, Matthias Kurz wrote:
> > Yes, i thought that modified config files are saved as *.rpmsave by rpm
> > when a package is removed, but i was not sure. Most of the time it is
> > still unessesary work to move them back after reinstallation. And it is
> > error prone because you may forget it and you are not informed when the
> > format of the config file changed... 
> >
> Careful, since OpenPKG 1.3 you are indeed warned by the rc program when using it 
> with packages
> that have such .rpmsave or .rpmnew files in their config directories. Try
> putting a blank 'thisthing.rpmsaved' file under /prefix/etc/apache/ and then
> run 'rc apache stop' or some other 'rc apache ...' command.

That's fine.

> There is however no warning from RPM itself after a sucessful package
> upgrade.

That is what i meaned. The package is removed (modified config is saved by
rpm). A new version with a changed config format is installed (no warning
from rpm, because there is no existing config file). And finally the user
moves the saved config file over the newly installed - like "always".
But i think this discussion goes too much into details. And i know it is
very easy to miss the warnings. (*1*) Guess that is one reason, why rc was
modified to complain.


   (mk)

(*1*) I sometimes thought it would be a nice thing, when there where a
      central log for such warnings. Also for other informational things
      that are sometimes echoed by installation routines. There is just
      too much output during builds, so that more important output is
      easily overlooked. Also, when there are several builds it would
      be nice to have the more important messages logged in a "permanent"
      place.
      Just a stray idea. There are probably more important things.

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im pr�motorischen Cortex kann jeder ein Held sein. (bdw) <<
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to