repo

List, download and sync packs with remote repositories
Log | Files | Refs | README

commit d3a89dc9b29fb289077b2f9c6c5e46a7f420b8dc
parent e8fc243b56c73fc572bf53ab92497b3ebf1352d1
Author: z3bra <contactatz3bradotorg>
Date:   Tue May 16 08:51:02 +0200

Add verbosity

Diffstat:
repo.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/repo.c b/repo.c @@ -132,6 +132,9 @@ download(char *url, FILE *fd) curl_easy_setopt(c, CURLOPT_URL, encurl); curl_easy_setopt(c, CURLOPT_WRITEDATA, fd); + if (verbose) + fprintf(stderr, "FETCH %s/%s\n", url, fn); + r = curl_easy_perform(c); if (r != CURLE_OK) { fprintf(stderr, "%s: %s\n", encurl, curl_easy_strerror(r)); @@ -144,6 +147,7 @@ download(char *url, FILE *fd) return 0; } + int cachepack(char *name, char *localrepo, struct packs *plist) { @@ -265,6 +269,8 @@ main (int argc, char *argv[]) exit(1); } TAILQ_FOREACH(r, &rlist, entries) { + if (verbose) + fprintf(stderr, "SYNC %s\n", r->url); snprintf(url, PATH_MAX, "%s/%s", r->url, DEFLISTFILE); download(url, fd); }