distromatic.c: indentation fixes

This commit is contained in:
Silvan Calarco 2021-03-20 12:21:11 +01:00
parent 04d323e9a7
commit 7d07afc0cc

View File

@ -470,7 +470,6 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx)
if (provided->numproviders == 0) { if (provided->numproviders == 0) {
// check if require[i]->name requirement is met // check if require[i]->name requirement is met
scanheader = ct->headerlist[archidx]; scanheader = ct->headerlist[archidx];
if ((currheader->require[i]->name)[0] == '/') { if ((currheader->require[i]->name)[0] == '/') {
/* requirement is a file, find who provides it */ /* requirement is a file, find who provides it */
file=findOrCreateFileTreeEntry(&ct->filetree[archidx],currheader->require[i]->name, archidx); file=findOrCreateFileTreeEntry(&ct->filetree[archidx],currheader->require[i]->name, archidx);
@ -485,10 +484,9 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx)
} }
} else { } else {
/* requirement is not a file, cross-check with provides */ /* requirement is not a file, cross-check with provides */
while (scanheader && while (scanheader && !checkRequireWithProvides(
!checkRequireWithProvides( currheader->require[i]->name, scanheader))
currheader->require[i]->name, scanheader = scanheader->next;
scanheader)) scanheader = scanheader->next;
if (scanheader) { if (scanheader) {
provided->numproviders=1; provided->numproviders=1;
provided->numbuildproviders=0; provided->numbuildproviders=0;
@ -588,7 +586,6 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx)
} }
} }
} }
if (provided->numproviders > 0) { if (provided->numproviders > 0) {
if (strcmp(currheader->require[i]->version,"") && if (strcmp(currheader->require[i]->version,"") &&
(currheader->require[i]->flags & (RPMSENSE_LESS|RPMSENSE_GREATER|RPMSENSE_EQUAL))) { (currheader->require[i]->flags & (RPMSENSE_LESS|RPMSENSE_GREATER|RPMSENSE_EQUAL))) {
@ -648,9 +645,12 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx)
provided->provider[j]->arch, provided->provider[j]->arch,
ct->repository[provided->provider[j]->altrepository]->tag, ct->repository[provided->provider[j]->altrepository]->tag,
provided->name); provided->name);
if (currheader->require[i]->flags & RPMSENSE_LESS) snprintf(&warning[strlen(warning)], PATH_MAX,"<"); if (currheader->require[i]->flags & RPMSENSE_LESS)
if (currheader->require[i]->flags & RPMSENSE_GREATER) snprintf(&warning[strlen(warning)], PATH_MAX, ">"); snprintf(&warning[strlen(warning)], PATH_MAX,"<");
if (currheader->require[i]->flags & RPMSENSE_EQUAL) snprintf(&warning[strlen(warning)], PATH_MAX, "="); if (currheader->require[i]->flags & RPMSENSE_GREATER)
snprintf(&warning[strlen(warning)], PATH_MAX, ">");
if (currheader->require[i]->flags & RPMSENSE_EQUAL)
snprintf(&warning[strlen(warning)], PATH_MAX, "=");
snprintf(&warning[strlen(warning)], PATH_MAX, "%s to %s(%s,%s)", snprintf(&warning[strlen(warning)], PATH_MAX, "%s to %s(%s,%s)",
currheader->require[i]->version, currheader->require[i]->version,
currheader->name, currheader->name,
@ -674,8 +674,8 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx)
currheader->require[i]->resolved=provided; currheader->require[i]->resolved=provided;
} else { } else {
currheader->require[i]->resolved=NULL; currheader->require[i]->resolved=NULL;
} } /* if */
} } /* for currheader->requirecount */
// sort required list by first provider's name // sort required list by first provider's name
qsort((void *) &currheader->require[0], qsort((void *) &currheader->require[0],
currheader->requirecount, currheader->requirecount,