projects
/
ppastats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
normalize #include
[ppastats.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
cc7f625
..
4c84444
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-25,14
+25,15
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-#include "cache.h"
+#include <cache.h>
+#include <config.h>
#include <fcache.h>
#include <fcache.h>
-#include
"html.h"
-#include
"http.h"
-#include
"lp_ws.h"
-#include
"config.h"
+#include
<html.h>
+#include
<http.h>
+#include
<lp_ws.h>
+#include
<pio.h>
#include <plog.h>
#include <plog.h>
-#include
"ppastats.h"
+#include
<ppastats.h>
static const char *program_name;
static const char *program_name;
@@
-130,7
+131,7
@@
static void print_help()
puts("");
puts(_(" -o, --output-dir=[PATH] generates HTML pages into 'PATH'"));
puts("");
puts(_(" -o, --output-dir=[PATH] generates HTML pages into 'PATH'"));
- puts(_(" -t, --theme-dir=[PATH] set theme dir to 'PATH'"));
+ puts(_(" -t, --theme-dir=[PATH]
set theme dir to 'PATH'"));
puts(_(
" -s, --status=[STATUS] retrieves only package of the given status\n"
puts(_(
" -s, --status=[STATUS] retrieves only package of the given status\n"
@@
-151,7
+152,7
@@
static void print_help()
int main(int argc, char **argv)
{
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];
int optc, output_html, cmdok, install_static_files, ws_size, opti;
program_name = argv[0];
@@
-212,7
+213,11
@@
int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
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];
owner = argv[optind];
ppa = argv[optind+1];