summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-24 20:45:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-24 20:45:52 +0000
commit8e669ac1dd7e925d9fb4f2e6b0f42e69f8458b4e (patch)
tree584afb6f07c746f9af21f21c875adab4d08934c0 /urpm
parent1b32b6ce93722e82caf1fbb5e8f2fd085126ac26 (diff)
downloadurpmi-8e669ac1dd7e925d9fb4f2e6b0f42e69f8458b4e.tar
urpmi-8e669ac1dd7e925d9fb4f2e6b0f42e69f8458b4e.tar.gz
urpmi-8e669ac1dd7e925d9fb4f2e6b0f42e69f8458b4e.tar.bz2
urpmi-8e669ac1dd7e925d9fb4f2e6b0f42e69f8458b4e.tar.xz
urpmi-8e669ac1dd7e925d9fb4f2e6b0f42e69f8458b4e.zip
do display the error
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 44212c6a..956cec08 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1071,9 +1071,10 @@ sub _build_synthesis {
end => $medium->{end},
synthesis => statedir_synthesis($urpm, $medium),
) };
- if ($@) {
+ if (my $err = $@) {
+ chomp($err);
$urpm->{error}(N("Unable to build synthesis file for medium \"%s\". Your hdlist file may be corrupted.", $medium->{name}));
- $urpm->{error}($@);
+ $urpm->{error}($err);
unlink statedir_synthesis($urpm, $medium);
} else {
$urpm->{log}(N("built hdlist synthesis file for medium \"%s\"", $medium->{name}));