diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-01-26 18:38:05 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-01-26 18:38:05 +0000 |
commit | 9383132c73a926981604bda8f23f95b19d395b8b (patch) | |
tree | 5979661e1bc7fa9d35d1b0b8a81ae70739066ebd | |
parent | be7b1aa4b79dfc4c30eb6573059ea58bb8055053 (diff) | |
download | urpmi-9383132c73a926981604bda8f23f95b19d395b8b.tar urpmi-9383132c73a926981604bda8f23f95b19d395b8b.tar.gz urpmi-9383132c73a926981604bda8f23f95b19d395b8b.tar.bz2 urpmi-9383132c73a926981604bda8f23f95b19d395b8b.tar.xz urpmi-9383132c73a926981604bda8f23f95b19d395b8b.zip |
better error reporting for curl
-rw-r--r-- | urpm.pm | 2 | ||||
-rwxr-xr-x | urpmi | 3 | ||||
-rw-r--r-- | urpmi.spec | 1 |
3 files changed, 6 insertions, 0 deletions
@@ -313,6 +313,8 @@ sub sync_curl { propagate_sync_callback($options, 'end', $file); $file = undef; } + } elsif ($buf =~ /^curl:/) { #- probably an error reported by curl + propagate_sync_callback($options, 'error', $file, $buf); } } else { ref($options) && $options->{quiet} or print STDERR $buf; @@ -614,6 +614,9 @@ foreach my $set (@{$state->{transaction} || []}) { print SAVEERR $text, " " x (79 - length($text)), "\r"; } elsif ($mode eq 'end') { print SAVEERR " " x 79, "\r"; + } elsif ($mode eq 'error') { + #- error is 3rd argument, saved in $percent + print STDERR N("...retrieving failed: %s"), $percent, "\n"; } } }, @@ -237,6 +237,7 @@ $urpm->update_media(nolock => 1, nopubkey => 1); %changelog * Wed Jan 21 2004 Olivier Blin <blino@mandrake.org> 4.4.3-1mdk +- better error reporting for curl - fix urpmq -i on media with synthesis hdlist - fix --limit-rate in man pages (it's in bytes/sec) - really fix urpme --root |