FTP proxy handling broken in 0.41

René Matthäi matthaei at gmx.de
Thu Jan 26 07:15:59 PST 2006


Hi,

unlike wget and curl, smart doesn't work with my ftp_proxy setting which 
are as follows:

user at host:/data1/home/re> sux -
Password:
host:~ # set|grep -i proxy
ftp_proxy=http://proxy.proxyhost.de:80
http_proxy=http://proxy.proxyhost.de:80
https_proxy=http://proxy.proxyhost.de:443
no_proxy='localhost, proxyhost.de, otherhost.de, otherhost2.de'
host:~ # export|grep -i proxy
declare -x ftp_proxy="http://proxy.proxyhost.de:80"
declare -x http_proxy="http://proxy.proxyhost.de:80"
declare -x https_proxy="http://proxy.proxyhost.de:443"
declare -x no_proxy="localhost, proxyhost.de, otherhost.de, 
otherhost2.de"

smart has no proxy config set, so it should use the environment 
variables (I also tested it with smart config --set ftp_proxy ... and 
so on - so _that_ probably isn't the problem):

host:~ # smart config --show|grep -i proxy

Now have a look what fine work curl and wget do:

host:~ # curl -o test 
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.opensuse.org/opensuse/distribution/SL-10.0-OSS/inst-source/suse/i586/3ddiag-0.728-2.i586.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                 Dload  Upload   Total   Spent    Left  
Speed
100 29062  100 29062    0     0  38766      0 --:--:-- --:--:-- --:--:--  
746k
host:~ # wget 
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.opensuse.org/opensuse/distribution/SL-10.0-OSS/inst-source/suse/i586/3ddiag-0.728-2.i586.rpm
--15:16:06--  
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.opensuse.org/opensuse/distribution/SL-10.0-OSS/inst-source/suse/i586/3ddiag-0.728-2.i586.rpm
           => `3ddiag-0.728-2.i586.rpm.6'
Resolving proxy.proxyhost.de... 130.83.244.131, 130.83.244.129
Connecting to proxy.proxyhost.de|130.83.244.131|:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 29,062 (28K) [application/x-rpm]

100%[================================================================================================================>] 
29,062        --.--K/s

15:16:06 (44.20 MB/s) - `3ddiag-0.728-2.i586.rpm.6' saved [29062/29062]

Ok, now let's see what smart does instead:

host:~ # smart install 
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.opensuse.org/opensuse/distribution/SL-10.0-OSS/inst-source/suse/i586/3ddiag-0.728-2.i586.rpm
Fetching packages...
-> 
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.opensuse.org/opensuse/distribution/SL-10.0-OSS/inst-source/suse/i586/3ddiag-0.728-2.i586.rpm
3ddiag-0.728-2.i586.rpm                                                                                                                              
(  0%)
Interrupted

host:~ # smart install 
http://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.opensuse.org/opensuse/distribution/SL-10.0-OSS/inst-source/suse/i586/3ddiag-0.728-2.i586.rpm
Fetching packages...
-> 
http://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.opensuse.org/opensuse/distribution/SL-10.0-OSS/inst-source/suse/i586/3ddiag-0.728-2.i586.rpm
3ddiag-0.728-2.i586.rpm                                       
###################################################################################### 
[100%]

Loading cache...
Updating cache...                                             
###################################################################################### 
[100%]

error: 3ddiag-0.728-2 at i586 is already installed
Saving cache...

Setting the log-level=debug doesn't reveal anything of interest

Greetings,

René

-- 
Registered Linux User #324404



More information about the Smart mailing list