distromatic.c: indentation fixes
This commit is contained in:
parent
04d323e9a7
commit
7d07afc0cc
@ -470,7 +470,6 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx)
|
||||
if (provided->numproviders == 0) {
|
||||
// check if require[i]->name requirement is met
|
||||
scanheader = ct->headerlist[archidx];
|
||||
|
||||
if ((currheader->require[i]->name)[0] == '/') {
|
||||
/* requirement is a file, find who provides it */
|
||||
file=findOrCreateFileTreeEntry(&ct->filetree[archidx],currheader->require[i]->name, archidx);
|
||||
@ -485,10 +484,9 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx)
|
||||
}
|
||||
} else {
|
||||
/* requirement is not a file, cross-check with provides */
|
||||
while (scanheader &&
|
||||
!checkRequireWithProvides(
|
||||
currheader->require[i]->name,
|
||||
scanheader)) scanheader = scanheader->next;
|
||||
while (scanheader && !checkRequireWithProvides(
|
||||
currheader->require[i]->name, scanheader))
|
||||
scanheader = scanheader->next;
|
||||
if (scanheader) {
|
||||
provided->numproviders=1;
|
||||
provided->numbuildproviders=0;
|
||||
@ -588,7 +586,6 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (provided->numproviders > 0) {
|
||||
if (strcmp(currheader->require[i]->version,"") &&
|
||||
(currheader->require[i]->flags & (RPMSENSE_LESS|RPMSENSE_GREATER|RPMSENSE_EQUAL))) {
|
||||
@ -648,9 +645,12 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx)
|
||||
provided->provider[j]->arch,
|
||||
ct->repository[provided->provider[j]->altrepository]->tag,
|
||||
provided->name);
|
||||
if (currheader->require[i]->flags & RPMSENSE_LESS) 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, "=");
|
||||
if (currheader->require[i]->flags & RPMSENSE_LESS)
|
||||
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)",
|
||||
currheader->require[i]->version,
|
||||
currheader->name,
|
||||
@ -674,8 +674,8 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx)
|
||||
currheader->require[i]->resolved=provided;
|
||||
} else {
|
||||
currheader->require[i]->resolved=NULL;
|
||||
}
|
||||
}
|
||||
} /* if */
|
||||
} /* for currheader->requirecount */
|
||||
// sort required list by first provider's name
|
||||
qsort((void *) &currheader->require[0],
|
||||
currheader->requirecount,
|
||||
|
Loading…
Reference in New Issue
Block a user