[Rpm-maint] [Patch 3/19] Enable PREREQ

Stanislav Brabec sbrabec at suse.cz
Fri Feb 9 15:10:08 UTC 2007


Paul Nasrat wrote:
> On Fri, 2007-02-09 at 14:51 +0100, Stanislav Brabec wrote:
> 
> 
> > And finally, why %preuntrans and %postuntrans don't exist at all?
> 
> There is no such thing as an untransaction, we don't do different types
> of transaction, merely a transaction that contains different operations
> on packages. Imagine a two package transaction, adding one package and
> removing a different one:
> 
> [PRETRANS]
> +[PKGA (pre, post)]
> -[PKGB (preun, postun)]
> [POSTTRANS]
> 
> Preuntrans does not make sense.

Now suppose that PKGB is a new version of PKGA.

Please fix me, if I am wrong in my understanding of upgrade process:

PRETRANS of PKGB
... maybe other updates ...
PRE of PKGA
place PKGB files
POST of PKGB
PREUN of PKGA
remove PKGA files not upgraded by PKGB
POSTUN of PKGA
... maybe other updates ...
POSTTRANS of PKGB

I see no way to instruct PKGA rpm to execute something something before
the whole upgrade-and-removal process starts.

It is a real life problem:
http://bugzilla.gnome.org/show_bug.cgi?id=306924

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: sbrabec at suse.cz
Lihovarská 1060/12                            tel: +420 284 028 966
190 00 Praha 9                                fax: +420 284 028 951
Czech Republic                                http://www.suse.cz/




More information about the Rpm-maint mailing list