reports: remove generation of APT repository file
This commit is contained in:
parent
5449e769c6
commit
80d617dc87
@ -624,53 +624,10 @@ generateStats(struct configTag *configtag,int arch)
|
||||
|
||||
|
||||
fclose(htmlout);
|
||||
|
||||
// fprintf(rssout, "</feed>\n");
|
||||
|
||||
fprintf(rssout, "</channel>\n");
|
||||
fprintf(rssout, "</rss>\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;
|
||||
|
Loading…
Reference in New Issue
Block a user