Adeodato Simó wrote: 

>   `lftp http://incoming.debian.org` used to work (it does with the
>   version in testing, 3.4.0), now it does not:
> 
>     % lftp http://incoming.debian.org
>     cd ok, cwd=/
>     lftp incoming.debian.org:/> exit
> 
>     % sudo apt-get install lftp=3.4.2-1
> 
>     % lftp http://incoming.debian.org
>     cd: Access failed: 404 Not Found (/)

Normally this problem could be circumvented by 

"set http:use-propfind no"

which initially solves the problem, one can connect to incoming.debian.org
again, but the mirror command stays broken:

[EMAIL PROTECTED]:/tmp/lftp-test$ lftp
lftp :~> open http://incoming.debian.org
cd: Access failed: 404 Not Found (/)
lftp :~> set http:use-propfind no
lftp :~> open http://incoming.debian.org
cd ok, cwd=/                                               
lftp incoming.debian.org:/> mirror -c -r -i ".*_(sparc|powerpc|i386|all)\.deb" 
-vv / /tmp/lftp-test
mirror: Access failed: 404 Not Found (/)
1 error detected
lftp incoming.debian.org:/> 

The following patch reverts the new behavior to the old one:

diff -u -r lftp-3.4.2.debian/src/Http.cc lftp-3.4.2/src/Http.cc
--- lftp-3.4.2.debian/src/Http.cc       2006-02-06 11:57:25.000000000 +0100
+++ lftp-3.4.2/src/Http.cc      2006-03-15 20:54:39.000000000 +0100
@@ -98,7 +98,7 @@
    no_cache_this=false;
    no_cache=false;
 
-   use_propfind_now=true;
+   use_propfind_now=false;
 
    hftp=false;
    https=false;
diff -u -r lftp-3.4.2.debian/src/resource.cc lftp-3.4.2/src/resource.cc
--- lftp-3.4.2.debian/src/resource.cc   2006-02-08 10:31:45.000000000 +0100
+++ lftp-3.4.2/src/resource.cc  2006-03-15 20:55:24.000000000 +0100
@@ -265,7 +265,7 @@
    ResDecl24d("http:cache-control",      "",      0,0),
    ResDecl25 ("http:proxy",              "",      HttpProxyValidate,0),
    ResDecl25a("http:use-mkcol",                  "yes",   
ResMgr::BoolValidate,0),
-   ResDecl25b("http:use-propfind",       "yes",   ResMgr::BoolValidate,0),
+   ResDecl25b("http:use-propfind",       "no",    ResMgr::BoolValidate,0),
    ResDecl26 ("http:user-agent",         PACKAGE"/"VERSION,0,0),
    ResDecl27 ("http:cookie",             "",      0,0),
    ResDecl28 ("http:set-cookies",        "no",    0,0),

(Please submit this update to lftp@uniyar.ac.ru, this list seems to only
accept mails from subscribed users.)

Grüße,
Sven.

-- 
Sven Hartge -- professioneller Unix-Geek
Meine Gedanken im Netz: http://www.svenhartge.de/

Achtung, neue Mail-Adresse: [EMAIL PROTECTED]

Reply via email to