"R.I.P. Deaddog" <[EMAIL PROTECTED]> writes:

> On 2003-06-17(Tue) 15:48:40 +0200, Marcel Pol wrote:
> > > Yes, it has just been fixed, bug in rpm fixed in rpm-4.2.1 with backport to
> > > original rpm.
> > 
> > Thanks. I guess this was already covered in another thread. I should probably
> > read better.
> > It still leaves me with my question about update-alternatives.
> 
> Not confirmed, but my bet is: since /usr/bin/abiword is present in 1.0.4 but
> not 1.0.6 in %%files, rpm removes the files AFTER update-alternatives is run.
> That is, after running postin script in new package, it goes ahead to
> remove all non-existant (which it thinks so) files in the old package.
> 
> Is it so, fpons?

The bug concerns packages removed, not files removed.

This changes nothing for abiword as /usr/bin/abiword is created by
update-alternatives by %post, it does not need to be present in %files.

Look at /usr/share/doc/rpm-*/triggers for documentation about which scriptlet
section are executed first, you will see that if abiword-1.0.4 has
/usr/bin/abiword in %files, /usr/bin/abiword is removed after %post is executed,
which is probably bad, a %trigger should be used so.

So you are right and Marcel Pol has work in the pipe ;-)

Fran�ois.

Reply via email to