distromatic.c: fix a creash when checking build provider versions
This commit is contained in:
parent
59e25e737f
commit
6661afaeb8
@ -713,13 +713,10 @@ resolveFirstLevelSourceDependencies(struct configTag *ct, int archidx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (provided->numbuildproviders > 0) {
|
if (provided->numbuildproviders > 0) {
|
||||||
|
|
||||||
if (strcmp(currsourceheader->require[i]->version,"") &&
|
if (strcmp(currsourceheader->require[i]->version,"") &&
|
||||||
(currsourceheader->require[i]->flags & (RPMSENSE_LESS+RPMSENSE_GREATER+RPMSENSE_EQUAL))) {
|
(currsourceheader->require[i]->flags & (RPMSENSE_LESS+RPMSENSE_GREATER+RPMSENSE_EQUAL))) {
|
||||||
|
|
||||||
found = 0;
|
found = 0;
|
||||||
for (j = 0; j < provided->numbuildproviders; j++) {
|
for (j = 0; j < provided->numversions; j++) {
|
||||||
|
|
||||||
if (!strcmp(provided->version[j],"")) {
|
if (!strcmp(provided->version[j],"")) {
|
||||||
/* provider with no version; assume ok */
|
/* provider with no version; assume ok */
|
||||||
found = 1;
|
found = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user