reports: avoid duplicated file names coming from different sources in deps-[arch] files

This commit is contained in:
Silvan Calarco 2013-09-04 16:52:12 +02:00
parent c81d7fc96d
commit 6cf2f008b1

View File

@ -1895,7 +1895,11 @@ print_datatables(struct configTag *ct, int arch) {
nonobsoletednumproviders=0; nonobsoletednumproviders=0;
for (i = 0; i < provided->numproviders; i++) { for (i = 0; i < provided->numproviders; i++) {
// skip duplicated provides // skip duplicated provides
if ((i > 0) && (provided->provider[i] == provided->provider[i-1])) continue; if (i > 0) {
if (provided->provider[i] == provided->provider[i-1]) continue;
else if (!strcmp(provided->provider[i]->name,provided->provider[i-1]->name) &&
!provided->provider[i-1]->obsoleted) continue;
}
if (!provided->provider[i]->obsoleted) nonobsoletednumproviders++; if (!provided->provider[i]->obsoleted) nonobsoletednumproviders++;
} }
if (nonobsoletednumproviders > 1) { if (nonobsoletednumproviders > 1) {