tech-userlevel archive

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

Re: Better provisions for binary package updates



Marc Balmer <marc%msys.ch@localhost> writes:

> If pkg_add is called with the -u option, the install script will be
> called with the additional argument REPLACE.  This allows the script
> to perform whatever is needed for an update while retaining backwards
> compatability (install scripts that are not update aware will behave
> like before).

(probably belongs on tech-pkg)

I see your point, but how different is

  replace

vs

  remove, pause, add

in terms of the desired end state?


In other words, maybe the replace action is really about config file
merging, which is about if there is an old one.

Also, I would like replace do do a /etc/rc.d/foo restart iff the service
is running.

Attachment: pgpBISr2oLgjY.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index