tAdd verbosity - repo - list/download/sync packs with remote repositories
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit d3a89dc9b29fb289077b2f9c6c5e46a7f420b8dc
 (DIR) parent e8fc243b56c73fc572bf53ab92497b3ebf1352d1
 (HTM) Author: z3bra <contactatz3bradotorg>
       Date:   Tue, 16 May 2017 08:51:02 +0200
       
       Add verbosity
       
       Diffstat:
         M repo.c                              |       6 ++++++
       
       1 file changed, 6 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/repo.c b/repo.c
       t@@ -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));
       t@@ -144,6 +147,7 @@ download(char *url, FILE *fd)
                return 0;
        }
        
       +
        int
        cachepack(char *name, char *localrepo, struct packs *plist)
        {
       t@@ -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);
                        }