RPM Community Forums

Mailing List Message of <rpm-devel>

mi->mi_offset == mi->mi_prevoffset

From: Alexey Tourbin <at@altlinux.ru>
Date: Sun 24 Aug 2008 - 19:18:31 CEST
Message-ID: <20080824171831.GB6477@altlinux.org>
rpmdb/rpmdb.c (rpmdbNextIterator):
  2418	    /* If next header is identical, return it now. */
  2419	/*@-compdef -refcounttrans -retalias -retexpose -usereleased @*/
  2420	    if (mi->mi_prevoffset && mi->mi_offset == mi->mi_prevoffset)
  2421		return mi->mi_h;
  2422	/*@=compdef =refcounttrans =retalias =retexpose =usereleased @*/

It looks like the condition never holds, because: 1) when doing mi_set,
each set element should be different; 2) when doing DB_NEXT, each header
instance should be different as well.

  • application/pgp-signature attachment: stored
Received on Sun Aug 24 19:18:44 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.