Hi,

The problem is due to these entries in /etc/apt/apt-file.conf

http = curl -I "<uri>/dists/<dist>/Contents-<arch>.gz" 2>&1 | grep 
'^HTTP.*404' > /dev/null || (curl -z "<cache>/<dest>" -R -o "<cache>/<dest>"  
"<uri>/dists/<dist>/Contents-<arch>.gz" && chmod 644 "<cache>/<dest>")
ftp = curl --ftp-pasv -I "<uri>/dists/<dist>/Contents-<arch>.gz" 2>&1 | grep 
'^Content-Length:' > /dev/null && (curl --ftp-pasv -z "<cache>/<dest>" -R -o 
"<cache>/<dest>"  "<uri>/dists/<dist>/Contents-<arch>.gz" && chmod 644 
"<cache>/<dest>")

In the last part enlosed in parenthesis you see the curl call employing the 
option

  -z "<cache>/<dest>"

The curl man page says:

   -z/--time-cond <date expression>
    (HTTP) Request a file that has been modified later than the given time and 
date, or one that has  been  modified
    before that time. The date expression can be all sorts of date strings or 
if it doesn’t match any internal ones,
    it tries to get the time from a given file name instead!

The intent is to make apt-file update fetch new version of the files only if 
they have been modified since the last fetch.

This works without flaws when the files exist.

When the files do not yet exist, i.e. on your first invocation of apt-file 
update, curl reports the illegal date format warning. apt-file would need to 
e.g. create empty files with date 1.1.1970 before calling curl to surpress 
the warning, or conditionally include the -z option only when the file 
already exists.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]                http://www.claudio.ch

Attachment: pgp5yDQkWC8VV.pgp
Description: PGP signature

Reply via email to