From 6cf2f008b116043e8147e0b21af8d03996216f6b Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 4 Sep 2013 16:52:12 +0200 Subject: [PATCH] reports: avoid duplicated file names coming from different sources in deps-[arch] files --- src/reports.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/reports.c b/src/reports.c index bb52f5f..b591082 100644 --- a/src/reports.c +++ b/src/reports.c @@ -1895,7 +1895,11 @@ print_datatables(struct configTag *ct, int arch) { nonobsoletednumproviders=0; for (i = 0; i < provided->numproviders; i++) { // 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 (nonobsoletednumproviders > 1) {