projects
/
ppastats.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
809fc7d
)
updated msgs
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 8 May 2012 12:44:16 +0000
(12:44 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 8 May 2012 12:44:16 +0000
(12:44 +0000)
src/html.c
patch
|
blob
|
history
diff --git
a/src/html.c
b/src/html.c
index
965a565
..
75a562f
100644
(file)
--- a/
src/html.c
+++ b/
src/html.c
@@
-421,13
+421,15
@@
create_html(const char *path,
const char *header;
header = get_header();
const char *header;
header = get_header();
- if (!header)
+ if (!header) {
+ log_err(_("Failed to get the header template"));
return ;
return ;
+ }
f = fopen(path, "w");
if (!f) {
f = fopen(path, "w");
if (!f) {
- log_err(_("
f
ailed to open: %s"), path);
+ log_err(_("
F
ailed to open: %s"), path);
return ;
}
return ;
}
@@
-495,7
+497,7
@@
pkg_to_html(struct ppa_stats *ppa, struct package_stats *pkg, const char *dir)
json_path = path_new(dir, pkg->name, ".json");
json = pkg_to_json(ppa, pkg);
json_path = path_new(dir, pkg->name, ".json");
json = pkg_to_json(ppa, pkg);
- log_debug(_("
g
enerating %s"), json_path);
+ log_debug(_("
G
enerating %s"), json_path);
json_object_to_file(json_path, json);
json_object_put(json);
json_object_to_file(json_path, json);
json_object_put(json);
@@
-508,7
+510,7
@@
pkg_to_html(struct ppa_stats *ppa, struct package_stats *pkg, const char *dir)
1);
sprintf(script, "ppastats_pkg(\"%s%s\");", pkg->name, ".json");
1);
sprintf(script, "ppastats_pkg(\"%s%s\");", pkg->name, ".json");
- log_debug(_("
g
enerating %s"), path);
+ log_debug(_("
G
enerating %s"), path);
create_html(path, pkg->name, body, script);
free(path);
create_html(path, pkg->name, body, script);
free(path);
@@
-571,7
+573,7
@@
ppa_to_html(const char *owner,
for (i = 0; i < 7; i++) {
f_dst = path_append(output_dir, www_files[2*i+1]);
for (i = 0; i < 7; i++) {
f_dst = path_append(output_dir, www_files[2*i+1]);
- log_debug(_("
c
opying %s %s"), www_files[2*i], f_dst);
+ log_debug(_("
C
opying %s %s"), www_files[2*i], f_dst);
fcopy(www_files[2*i], f_dst);
free(f_dst);
fcopy(www_files[2*i], f_dst);
free(f_dst);