On Feb 25, 2011, at 1:25 AM, Per Øyvind Karlsen wrote:

> When trying to install a repackaged rpm, it will abort with an
> assertion error due to
> the presence of a %{removetid} tag:
> assert(headerIsEntry(h, RPMTAG_REMOVETID) == 0);      /* XXX sanity */
> 
> Where's the sanity in this as referred to in the comment? ;)
> 

Added packages whould never have RPMTAG_REMOVETID, rather RPMTAG_INSTALLTID.

(aside)
BTW, headerIsEntry() -- used as double check like this -- is less than optimal.
Usually the logic can be written differently and not based on existence tests.
Not this case though ...

73 de Jeff

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to