From 80d617dc87edbcf6e3e0197293f4c307b704a85e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 6 Dec 2024 09:49:21 +0100 Subject: [PATCH] reports: remove generation of APT repository file --- src/reports.c | 45 +-------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/src/reports.c b/src/reports.c index 16b060c..41c2cc8 100644 --- a/src/reports.c +++ b/src/reports.c @@ -618,59 +618,16 @@ generateStats(struct configTag *configtag,int arch) configtag->tag, (configtag->stats.headersourcelistvec)[i]->name); fprintf(rssout," \n"); - } + } i++; } fclose(htmlout); - -// fprintf(rssout, "\n"); - fprintf(rssout, "\n"); fprintf(rssout, "\n"); fclose(rssout); - /* create APT repository file */ - snprintf(outfile, PATH_MAX, "%s%s-%s.list", - configtag->html_dir, - configtag->configdefaults->distribution_name, - configtag->tag); - - if ((htmlout = fopen(outfile, "w")) == NULL) { - perror(outfile); - return 1; - } else { - - /* remove final slashes from download_prefix as required by apt */ - strcpy(buffer, configtag->download_dir); - - i=strlen(buffer); - while ((i > 0) && (buffer[i-1] == '/' )) { - buffer[i-1]='\0'; - i--; - } - - fprintf(htmlout, "#\n# %s %s repository sources list for APT\n#\n\n", - configtag->configdefaults->distribution_name, - configtag->tag); - fprintf(htmlout, "#\n# %s %s repository from %s\n#\n", - configtag->tag, - configtag->arch[arch], - configtag->configdefaults->url_address); - fprintf(htmlout, "rpm http://%s %s %s\n\n", - configtag->configdefaults->url_address, - buffer, - configtag->arch[arch]); - fprintf(htmlout, "#\n# %s sources repository from %s\n#\n", - configtag->tag, - configtag->configdefaults->url_address); - fprintf(htmlout, "rpm-src http://%s %s base\n\n", - configtag->configdefaults->url_address, - buffer); - fclose(htmlout); - } - /* create Changelog page */ struct tm tmdate; tmdate.tm_min = 0;