headerGetEntry(h, RPMTAG_VERSION, &type, (void **) &version, &fileCount);
headerGetEntry(h, RPMTAG_RELEASE, &type, (void **) &release, &fileCount);
-
rpmMessage(RPMMESS_DEBUG, _("package: %s-%s-%s files test = %d\n"),
name, version, release, flags & RPMTRANS_FLAG_TEST);
dbiFreeIndexRecord(matches);
}
+ if (!rpmdbFindByHeader(db, h, &matches)) {
+ otherOffset = matches.recs[0].recOffset;
+ dbiFreeIndexRecord(matches);
+ }
+
if (rootdir) {
/* this loads all of the name services libraries, in case we
don't have access to them in the chroot() */