]> git.pld-linux.org Git - packages/poldek.git/blob - poldek-ext-down-enable.patch
- rel 6; enable external downloaders by default and move fetcher registration errors...
[packages/poldek.git] / poldek-ext-down-enable.patch
1 diff -urN poldek-0.32.2.org/conf/poldek.conf poldek-0.32.2/conf/poldek.conf
2 --- poldek-0.32.2.org/conf/poldek.conf  2016-02-03 22:02:49.000000000 +0100
3 +++ poldek-0.32.2/conf/poldek.conf      2017-11-23 09:21:23.347551541 +0100
4 @@ -15,7 +15,7 @@
5  
6  # External downloaders configuration, not necessary in most cases, cause
7  # to internal HTTP and FTP client.
8 -#%include fetch.conf
9 +%include fetch.conf
10  
11  [global]
12  
13 diff -urN poldek-0.32.2.org/vfile/fetch.c poldek-0.32.2/vfile/fetch.c
14 --- poldek-0.32.2.org/vfile/fetch.c     2016-01-30 15:05:57.000000000 +0100
15 +++ poldek-0.32.2/vfile/fetch.c 2017-11-23 09:38:01.044442691 +0100
16 @@ -163,7 +163,9 @@
17          if (vf_find_external_command(p, PATH_MAX, path, NULL))
18              path = p;
19          else {
20 -            vf_logerr("%s: command not found\n", path);
21 +            if (*vfile_verbose > 0) {
22 +                vf_logerr("%s: command not found\n", path);
23 +            }
24              return NULL;
25          }
26      }
27 @@ -494,7 +496,9 @@
28      }
29      
30      if ((ftch = ffetcher_new(name, protocols, cmd)) == NULL) {
31 -        vf_logerr("External downloader '%s': registration failed\n", cmd);
32 +        if (*vfile_verbose > 0) {
33 +            vf_logerr("External downloader '%s': registration failed\n", cmd);
34 +        }
35          
36      } else {
37          if (ffetchers == NULL) {
This page took 0.031602 seconds and 3 git commands to generate.