Package: apt-file
Version: 2.1.2
Followup-For: Bug #381613

Adding a progress bar to curl doesn't work. I have set the following
command in my apt-file.conf:

curl_cmd = curl -f -L -z "<cache>/<dest>" -R -o "<cache>/<dest>_tmp" '-\#'

The \ is necessary to avoid some kind of parsing.
% apt-file update --verbose
<snip>
D: curl -f -L -z 
"/home/felipe/.apt-file/ftp.br.debian.org_debian_dists_sid_Contents-amd64.gz" 
-R -o 
"/home/felipe/.apt-file/ftp.br.debian.org_debian_dists_sid_Contents-amd64.gz_tmp"
 '-#' "http://ftp.br.debian.org/debian/dists/sid/Contents-amd64.gz"; >/dev/null 
2>&1 && <snip>

Evidently, if curl's output is piped into /dev/null a progress bar won't
show up.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-file depends on:
ii  curl                          7.18.1-1   Get a file from an HTTP, HTTPS or 
ii  libapt-pkg-perl               0.1.22+b1  Perl interface to libapt-pkg
ii  libconfig-file-perl           1.42-1     Parses simple configuration files
ii  liblist-moreutils-perl        0.22-1+b1  Addition list functions not found 
ii  menu                          2.1.38     generates programs menu for all me
ii  perl                          5.10.0-10  Larry Wall's Practical Extraction 
ii  wget                          1.11.2-1   retrieves files from the web

apt-file recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to