Increase obsolete limit (OBSOLETE_MAX) from 256 to 1024
This commit is contained in:
parent
4d9e6ffad9
commit
00a88dd5e6
@ -244,16 +244,16 @@ handleObsoletedPackages(struct configTag *ct, int archidx)
|
|||||||
{
|
{
|
||||||
struct providedList *prov = ct->providedlist_idx[archidx][0];
|
struct providedList *prov = ct->providedlist_idx[archidx][0];
|
||||||
int i,j,k;
|
int i,j,k;
|
||||||
int obs[256];
|
int obs[OBSOLETE_MAX];
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
struct headerList *currheader;
|
struct headerList *currheader;
|
||||||
|
|
||||||
while (prov) {
|
while (prov) {
|
||||||
|
|
||||||
if (prov->numproviders > 256) {
|
if (prov->numproviders > OBSOLETE_MAX) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prov->numproviders > 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++)
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
#include "globaldefs.h"
|
#include "globaldefs.h"
|
||||||
#include "headerlist.h"
|
#include "headerlist.h"
|
||||||
|
|
||||||
|
#define OBSOLETE_MAX 1024
|
||||||
|
|
||||||
struct configDefaults {
|
struct configDefaults {
|
||||||
char *html_basedir;
|
char *html_basedir;
|
||||||
char *distribution_name;
|
char *distribution_name;
|
||||||
|
Loading…
Reference in New Issue
Block a user