https://qa.mandrakesoft.com/show_bug.cgi?id=994





------- Additional Comments From [EMAIL PROTECTED]  2003-01-22 22:32 -------
Reason of this problem seems to be in /usr/lib/perl5/vendor/perl/5.8.0/urpm.pm
in sync_curl, when trying to get the list, set_proxy returns 0 that is
stuffed in the command line for curl. Curl thinks that it is an adress (0.0.0.0)
to which it tries to connect.
This seems to avoid the message :

--- urpm.pm.orig        2003-01-20 13:56:23.000000000 +0100
+++ urpm.pm     2003-01-22 22:29:11.000000000 +0100
@@ -246,7 +246,7 @@
        #- prepare to get back size and time stamp of each file.
        local *CURL;
        open CURL, "/usr/bin/curl" .
-               " " . (ref $options && set_proxy({type => "curl", proxy =>
$options->{proxy}})) .
+               " " . (ref $options && ref $options->{proxy} && set_proxy({type
=> "curl", proxy => $options->{proxy}})) .
                " " . (ref $options && $options->{quiet} ? ("-s") : ()) .
                " -I " . join(" ", map { "'$_'" } @ftp_files) . " |";
        while (<CURL>) {




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
description: 
urpmi.updates always displays this error :
curl: (7) Connect failed
(although it works)

------------------------------
[root@beta2 root]# urpmi.update cooker
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 1
(x86) (cdrom1).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 2
(x86) (cdrom2).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.toto.cz]
retrieving description file of "cooker"...
retrieving source hdlist (or synthesis) of "cooker"...
curl: (7) Connect failed
  % Total    % Received % Xferd  Average Speed          Time             Curr.
                                 Dload  Upload Total    Current  Left    Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
...retrieving done
examining synthesis file [/var/cache/urpmi/partial/hdlist.cooker.cz]
found 76 headers in cache
removing 0 obsolete headers in cache
write config file [/etc/urpmi/urpmi.cfg]
-------------------------------------

Reply via email to