* added date created information in the generated HTML for a package
version.
* added command line option to specify the theme directory (-t).
+* log file is put into $HOME/.ppastats dir instead of current dir.
v1.1.0
------
#include "http.h"
#include "lp_ws.h"
#include "config.h"
+#include <pio.h>
#include <plog.h>
#include "ppastats.h"
int main(int argc, char **argv)
{
- char *owner, *ppa, *package_status, *output_dir, *theme_dir;
+ char *owner, *ppa, *package_status, *output_dir, *theme_dir, *log, *tmp;
int optc, output_html, cmdok, install_static_files, ws_size, opti;
program_name = argv[0];
exit(EXIT_FAILURE);
}
- log_open("ppastats.log");
+ tmp = path_append(getenv("HOME"), ".ppastats");
+ log = path_append(tmp, "ppastats.log");
+ log_open(log);
+ free(tmp);
+ free(log);
owner = argv[optind];
ppa = argv[optind+1];