- disable expensive header+payload verifies in default config.
- adjust digest/signature stats to count #pkgs and bytes.
- obsolete Serial:, Copyright:, and RHNPlatform: syntax in spec files.
+ - permit Obsoletes: /path/to/file.
4.3.1 -> 4.3.2:
- use /etc/selinux/targeted/contexts/files/file_contexts for now.
initPreambleList();
for (p = preambleList; p->token != NULL; p++) {
- if (p->token && !xstrncasecmp(spec->line, p->token, p->len))
- break;
+ if (!(p->token && !xstrncasecmp(spec->line, p->token, p->len)))
+ continue;
if (p->obsolete) {
rpmError(RPMERR_BADSPEC, _("Obsolete syntax: %s\n"),
p->token);
p = NULL;
}
+ break;
}
if (p == NULL || p->token == NULL)
return 1;
if (!strcmp(rpmteN(p), Name))
continue;
- mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, Name, 0);
+ if (Name[0] == '/')
+ mi = rpmtsInitIterator(ts, RPMTAG_BASENAMES, Name, 0);
+ else
+ mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, Name, 0);
xx = rpmdbPruneIterator(mi,
ts->removedPackages, ts->numRemovedPackages, 1);
* If no obsoletes version info is available, match all names.
*/
if (rpmdsEVR(obsoletes) == NULL
- || rpmdsAnyMatchesDep(oh, obsoletes, _rpmds_nopromote))
+ || rpmdsAnyMatchesDep(oh, obsoletes, _rpmds_nopromote)) {
+ const char * ohNEVRA = hGetNEVRA(oh, NULL);
#ifdef DYING /* XXX see http://bugzilla.redhat.com #134497 */
if (rpmVersionCompare(h, oh))
#endif
xx = removePackage(ts, oh, rpmdbGetIteratorOffset(mi), pkgKey);
+ rpmMessage(RPMMESS_DEBUG, _(" Obsoletes: %s\t\terases %s\n"),
+ rpmdsDNEVR(obsoletes)+2, ohNEVRA);
+ ohNEVRA = _free(ohNEVRA);
+ }
}
mi = rpmdbFreeIterator(mi);
}