summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-01-26 18:38:05 +0000
committerOlivier Blin <oblin@mandriva.org>2004-01-26 18:38:05 +0000
commit9383132c73a926981604bda8f23f95b19d395b8b (patch)
tree5979661e1bc7fa9d35d1b0b8a81ae70739066ebd /urpm.pm
parentbe7b1aa4b79dfc4c30eb6573059ea58bb8055053 (diff)
downloadurpmi-9383132c73a926981604bda8f23f95b19d395b8b.tar
urpmi-9383132c73a926981604bda8f23f95b19d395b8b.tar.gz
urpmi-9383132c73a926981604bda8f23f95b19d395b8b.tar.bz2
urpmi-9383132c73a926981604bda8f23f95b19d395b8b.tar.xz
urpmi-9383132c73a926981604bda8f23f95b19d395b8b.zip
better error reporting for curl
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 9220ef91..7d34fb38 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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;