[Rpm-maint] Package replace implementation
Michael Schroeder
mls at suse.de
Wed Jun 8 15:49:03 UTC 2011
Hi,
seeing the latest "replacepkgs" commits (030e54), I wonder if we
should not drop that crazy refresh handling and simply use an
uninstall element to erase the package.
Currently, rpm works different if the EVR of the to-be-installed
package matches the installed package:
foo-1-2 -> foo-1.3 (upgrade)
- run prein/postin of foo-1.3
- run preun/postun of foo-1.2
foo-1-2 -> foo-1.1 (downgrade)
- run prein/postin of foo-1.1
- run preun/postun of foo-1.2
foo->1.2 -> foo-1.2 (replace)
- run prein/postin of foo-1.2
- does *not* run uninstall scriptlets or deinstall files no
longer in foo-1.2
Why doesn't it run the uninstall scriptlets? What makes "same EVR"
so special when the package content may be different nevertheless?
Cheers,
Michael.
--
Michael Schroeder mls at suse.de
SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
More information about the Rpm-maint
mailing list