reports: put only packages in current repository in needport list

This commit is contained in:
Silvan Calarco 2013-05-08 13:02:15 +02:00
parent babfe854ea
commit 1176487045
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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;