src/reports.c: don't remove obsoleted packages from builds files

This commit is contained in:
Silvan Calarco 2021-03-14 19:34:28 +01:00
parent a4b7cd5412
commit 2d09528f4f

View File

@ -1,7 +1,7 @@
/* /*
* distromatic - tool for RPM based repositories * distromatic - tool for RPM based repositories
* *
* Copyright (C) 2004-2020 by Silvan Calarco <silvan.calarco@mambasoft.it> * Copyright (C) 2004-2021 by Silvan Calarco <silvan.calarco@mambasoft.it>
* Copyright (C) 2006 by Davide Madrisan <davide.madrisan@gmail.com> * Copyright (C) 2006 by Davide Madrisan <davide.madrisan@gmail.com>
* *
* This program is free software; you can redistribute it and/or modify it under * This program is free software; you can redistribute it and/or modify it under
@ -1997,10 +1997,8 @@ int print_datatables(struct configTag *ct, int arch) {
obsoletebuf[0] = '\0'; obsoletebuf[0] = '\0';
while (currchild) { while (currchild) {
if (currchild->obsoleted == 0) { fprintf(fbsh,"%s",currchild->name);
fprintf(fbsh,"%s",currchild->name); fprintf(fb," %s",currchild->name);
fprintf(fb," %s",currchild->name);
}
for (i = 0; i < currchild->obsoletecount; i++ ) { for (i = 0; i < currchild->obsoletecount; i++ ) {
if ((i > 0) && (!strcmp(currchild->obsoletename[i],currchild->obsoletename[i-1]))) continue; if ((i > 0) && (!strcmp(currchild->obsoletename[i],currchild->obsoletename[i-1]))) continue;
if (strlen(obsoletebuf) + strlen(currchild->obsoletename[i]) >= OBSOLETEBUF_SIZE - 2) { if (strlen(obsoletebuf) + strlen(currchild->obsoletename[i]) >= OBSOLETEBUF_SIZE - 2) {