Ignore SRPMS with no builds when resolving fist level dependencies, mainly for secondary archs

This commit is contained in:
Silvan Calarco 2013-01-12 17:44:52 +01:00
parent 5bc95d28e1
commit 72a7609832

View File

@ -619,6 +619,10 @@ resolveFirstLevelSourceDependencies(struct configTag *ct, int archidx)
logmsg(LOG_DEBUG,"resolveFirstLevelSourceDependencies - sources"); logmsg(LOG_DEBUG,"resolveFirstLevelSourceDependencies - sources");
while (currsourceheader) { while (currsourceheader) {
if (!currsourceheader->firstchild[archidx]) { // ignore SRPMs with no builds
currsourceheader = currsourceheader->next;
continue;
}
scanheader = ct->headerlist[archidx]; scanheader = ct->headerlist[archidx];
currsourceheader->requirelist = NULL; currsourceheader->requirelist = NULL;
// currsourceheader->require.resolved = malloc(sizeof(struct providedList*)*currsourceheader->requirecount); // currsourceheader->require.resolved = malloc(sizeof(struct providedList*)*currsourceheader->requirecount);