Skip "debuginfo(build-id)" multiple provided element from obsolete checking

This commit is contained in:
Silvan Calarco 2020-11-08 10:53:37 +01:00
parent 21d596193d
commit 88887423f4
2 changed files with 8 additions and 7 deletions

View File

@ -249,12 +249,13 @@ handleObsoletedPackages(struct configTag *ct, int archidx)
struct headerList *currheader;
while (prov) {
// Skip debuginfo(build-id) provides which would need very big multiple providers buffer size
if (prov->numproviders > 1 && (strncmp(prov->name, "debuginfo(build-id)", 20) < 0)) {
if (prov->numproviders > OBSOLETE_MAX) {
fprintf(stderr, "Error: %s has too many providers (%d > %d)\n",
prov->name, prov->numproviders, OBSOLETE_MAX);
return 1;
}
if (prov->numproviders > 1) {
for (i = 0; i < prov->numproviders; i++) obs[i]=-1;
for (i = 0; i < prov->numproviders; i++)
for (j = 0; j < prov->provider[i]->obsoletecount; j++)

View File

@ -11,7 +11,7 @@
#define PACKAGE_BUGREPORT "silvan.calarco@mambasoft.it"
#define ARCHS_MAX 5
#define OBSOLETE_MAX 16384
#define OBSOLETE_MAX 1024
#define DEFAULT_ARCH "i586"
#define CONF_DEFAULTS_SECTION 1
#define CONF_REP_SECTION 0