From 6661afaeb8ce3d5cd2612c3dc4be6bc21f8a0067 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 13 Jul 2013 20:01:25 +0200 Subject: [PATCH] distromatic.c: fix a creash when checking build provider versions --- src/distromatic.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/distromatic.c b/src/distromatic.c index 3347a07..ac7baf5 100644 --- a/src/distromatic.c +++ b/src/distromatic.c @@ -713,13 +713,10 @@ resolveFirstLevelSourceDependencies(struct configTag *ct, int archidx) } if (provided->numbuildproviders > 0) { - if (strcmp(currsourceheader->require[i]->version,"") && (currsourceheader->require[i]->flags & (RPMSENSE_LESS+RPMSENSE_GREATER+RPMSENSE_EQUAL))) { - found = 0; - for (j = 0; j < provided->numbuildproviders; j++) { - + for (j = 0; j < provided->numversions; j++) { if (!strcmp(provided->version[j],"")) { /* provider with no version; assume ok */ found = 1;