diff --git a/VERSION b/VERSION index d794589..0af1f5a 100644 --- a/VERSION +++ b/VERSION @@ -1,4 +1 @@ -VERSION = 1.2 - - - +VERSION = 1.2.1 diff --git a/src/reports.c b/src/reports.c index ddf55e0..10324cb 100644 --- a/src/reports.c +++ b/src/reports.c @@ -152,37 +152,44 @@ void printpkgicon(FILE *fout, struct configTag *configtag, struct headerSourceLi char buffer[PATH_MAX]; char strdate[16]; + if (s->updrepository >= 0) { + fprintf(fout, + "configdefaults->url_dir); + } else { + fprintf(fout, + "configdefaults->url_dir); + } + if (s->changelog) { simpleTimeToHuman(s->changelog->time, (humanDate *) & strdate); - if (s->updrepository >= 0) { - fprintf(fout, - "", - configtag->configdefaults->url_dir, - strdate, - s->changelog->pkg->name, - s->changelog->release, - htmlcleanNoBr(s->changelog->text,buffer,PATH_MAX), - configtag->repository[s->updrepository]->tag); - } else { - fprintf(fout, - "", - configtag->configdefaults->url_dir, - strdate, - s->changelog->pkg->name, - s->changelog->release, - htmlcleanNoBr(s->changelog->text,buffer,PATH_MAX)); + fprintf(fout, + "title=\"%s - %s (%s)\n%s", + strdate, + s->changelog->pkg->name, + s->changelog->release, + htmlcleanNoBr(s->changelog->text,buffer,PATH_MAX)); + if (s->changelog->next) { + simpleTimeToHuman(s->changelog->next->time, (humanDate *) & strdate); + fprintf(fout, + "\n%s - %s (%s)\n%s", + strdate, + s->changelog->next->pkg->name, + s->changelog->next->release, + htmlcleanNoBr(s->changelog->next->text,buffer,PATH_MAX)); } } else { - if (s->updrepository >= 0) { - fprintf(fout, - "", - configtag->configdefaults->url_dir, - configtag->repository[s->updrepository]->tag); - } else { - fprintf(fout, - "", - configtag->configdefaults->url_dir); - } + fprintf(fout, + "title=\"WARNING: missing changelog"); + } + + if (s->updrepository >= 0) { + fprintf(fout, + "\n\nUpdates package in %s\">", + configtag->repository[s->updrepository]->tag); + } else { + fprintf(fout, "\">"); } }