reports.c: fix links to Required by: packages in html pages
This commit is contained in:
parent
55afaf208c
commit
abc188b260
@ -1554,12 +1554,10 @@ generateHTMLFiles(struct configTag *ct, int arch)
|
||||
fprintf(fout,"%s",currheaderlist->require[i]->resolved->name);
|
||||
} else if (currheaderlist->require[i]->resolved->numproviders == 1) {
|
||||
// single provider
|
||||
if ((ct->repository_level == 0) ||
|
||||
(currheaderlist->require[i]->resolved->provider[0]->sourceheader &&
|
||||
currheaderlist->require[i]->resolved->provider[0]->altrepository == ct->repository_level)) {
|
||||
if (currheaderlist->require[i]->resolved->provider[0]->sourceheader) {
|
||||
fprintf(fout,"<a href=\"%stag=%s&pkg=%s.%s\">%s</a>",
|
||||
ct->configdefaults->url_prefix,
|
||||
ct->tag,
|
||||
ct->repository[currheaderlist->require[i]->resolved->provider[0]->altrepository]->tag,
|
||||
currheaderlist->require[i]->resolved->provider[0]->name,
|
||||
ct->arch[arch],
|
||||
currheaderlist->require[i]->resolved->name);
|
||||
@ -1571,12 +1569,10 @@ generateHTMLFiles(struct configTag *ct, int arch)
|
||||
logmsg(LOG_DEBUG,"Requirement %s has multiple providers",currheaderlist->require[i]->resolved->name);
|
||||
fprintf(fout,"<i>%s</i>(",currheaderlist->require[i]->resolved->name);
|
||||
for (j = 0; j < currheaderlist->require[i]->resolved->numproviders; j++) {
|
||||
if ((ct->repository_level == 0) ||
|
||||
(currheaderlist->require[i]->resolved->provider[j]->sourceheader &&
|
||||
currheaderlist->require[i]->resolved->provider[j]->altrepository == ct->repository_level))
|
||||
if (currheaderlist->require[i]->resolved->provider[j]->sourceheader)
|
||||
fprintf(fout,"<a href=\"%stag=%s&pkg=%s.%s\">%s</a>",
|
||||
ct->configdefaults->url_prefix,
|
||||
ct->tag,
|
||||
ct->repository[currheaderlist->require[i]->resolved->provider[j]->altrepository]->tag,
|
||||
currheaderlist->require[i]->resolved->provider[j]->name,
|
||||
ct->arch[arch],
|
||||
currheaderlist->require[i]->resolved->provider[j]->name);
|
||||
@ -1665,12 +1661,11 @@ generateHTMLFiles(struct configTag *ct, int arch)
|
||||
auxheaderlist = ct->headerlist[arch];
|
||||
while (auxheaderlist) {
|
||||
if (auxheaderlist != currheaderlist)
|
||||
found = 0;
|
||||
for (i = 0; i < auxheaderlist->requirecount; i++) {
|
||||
if (auxheaderlist->require[i]->resolved &&
|
||||
(auxheaderlist->require[i]->resolved->numproviders == 1) &&
|
||||
!strcmp(auxheaderlist->require[i]->resolved->provider[0]->name,
|
||||
currheaderlist->name)) {
|
||||
if ((ct->repository_level == 0) || auxheaderlist->altrepository == ct->repository_level) {
|
||||
if (auxheaderlist->require[i]->resolved) {
|
||||
for (j = 0; j < auxheaderlist->require[i]->resolved->numproviders; j++) {
|
||||
if (!strcmp(auxheaderlist->require[i]->resolved->provider[j]->name, currheaderlist->name)) {
|
||||
fprintf(fout,
|
||||
"<a href=\"%stag=%s&pkg=%s.%s\">%s(%s)</a> ",
|
||||
ct->configdefaults->url_prefix,
|
||||
@ -1679,12 +1674,12 @@ generateHTMLFiles(struct configTag *ct, int arch)
|
||||
ct->arch[arch],
|
||||
auxheaderlist->name,
|
||||
ct->arch[arch]);
|
||||
} else
|
||||
{
|
||||
fprintf(fout,"%s\n",auxheaderlist->name);
|
||||
found = 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (found) break;
|
||||
}
|
||||
}
|
||||
if (found) break;
|
||||
}
|
||||
auxheaderlist = auxheaderlist->next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user