From 1176487045d547a3110261386ffd98cf9083d8d8 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 8 May 2013 13:02:15 +0200 Subject: [PATCH] reports: put only packages in current repository in needport list --- src/distromatic.c | 3 ++- src/reports.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/distromatic.c b/src/distromatic.c index 6f15740..af179e9 100644 --- a/src/distromatic.c +++ b/src/distromatic.c @@ -1364,7 +1364,8 @@ main(int argc, char *argv[]) warning[0] = '\0'; for (i = 0; i < ARCHS_MAX && configtag->arch[i]; i++) { - if (hasbuilds[i] == -1) { + if ((hasbuilds[i] == -1) && + (currheadersourcelist->altrepository == configtag->repository_level)) { if (warning[0] == '\0') strncat(warning, "requires port to arch(s):", PATH_MAX); strncat(warning," ",PATH_MAX); diff --git a/src/reports.c b/src/reports.c index e6cf262..daa1ea2 100644 --- a/src/reports.c +++ b/src/reports.c @@ -2029,7 +2029,8 @@ print_datatables(struct configTag *ct, int arch) { while (currheadersourcelist != NULL) { if (!currheadersourcelist->firstchild[arch] && currheadersourcelist->old && - currheadersourcelist->old->firstchild[arch]) { + currheadersourcelist->old->firstchild[arch] && + (currheadersourcelist->altrepository == ct->repository_level)) { fprintf(fbsh,"%s ",currheadersourcelist->name); } currheadersourcelist = currheadersourcelist->next;