Skip "debuginfo(build-id)" multiple provided element from obsolete checking
This commit is contained in:
parent
21d596193d
commit
88887423f4
@ -249,12 +249,13 @@ handleObsoletedPackages(struct configTag *ct, int archidx)
|
|||||||
struct headerList *currheader;
|
struct headerList *currheader;
|
||||||
|
|
||||||
while (prov) {
|
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) {
|
if (prov->numproviders > OBSOLETE_MAX) {
|
||||||
|
fprintf(stderr, "Error: %s has too many providers (%d > %d)\n",
|
||||||
|
prov->name, prov->numproviders, OBSOLETE_MAX);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prov->numproviders > 1) {
|
|
||||||
for (i = 0; i < prov->numproviders; i++) obs[i]=-1;
|
for (i = 0; i < prov->numproviders; i++) obs[i]=-1;
|
||||||
for (i = 0; i < prov->numproviders; i++)
|
for (i = 0; i < prov->numproviders; i++)
|
||||||
for (j = 0; j < prov->provider[i]->obsoletecount; j++)
|
for (j = 0; j < prov->provider[i]->obsoletecount; j++)
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#define PACKAGE_BUGREPORT "silvan.calarco@mambasoft.it"
|
#define PACKAGE_BUGREPORT "silvan.calarco@mambasoft.it"
|
||||||
|
|
||||||
#define ARCHS_MAX 5
|
#define ARCHS_MAX 5
|
||||||
#define OBSOLETE_MAX 16384
|
#define OBSOLETE_MAX 1024
|
||||||
#define DEFAULT_ARCH "i586"
|
#define DEFAULT_ARCH "i586"
|
||||||
#define CONF_DEFAULTS_SECTION 1
|
#define CONF_DEFAULTS_SECTION 1
|
||||||
#define CONF_REP_SECTION 0
|
#define CONF_REP_SECTION 0
|
||||||
|
Loading…
Reference in New Issue
Block a user