summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-23 11:18:04 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-23 11:18:04 +0000
commitc60f4e68a277f98a7694db56aec6d235bac4d5b6 (patch)
tree5e7586b0a546f8eefaf9b94becb7d9b879ce091e /urpm.pm
parentd0cc94ef72a16ae2c21121c5058bc28a30c47c2d (diff)
downloadurpmi-c60f4e68a277f98a7694db56aec6d235bac4d5b6.tar
urpmi-c60f4e68a277f98a7694db56aec6d235bac4d5b6.tar.gz
urpmi-c60f4e68a277f98a7694db56aec6d235bac4d5b6.tar.bz2
urpmi-c60f4e68a277f98a7694db56aec6d235bac4d5b6.tar.xz
urpmi-c60f4e68a277f98a7694db56aec6d235bac4d5b6.zip
Add native error messages when build_synthesis fails
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 4222f225..6226648c 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1931,6 +1931,7 @@ this could happen if you mounted manually the directory when creating the medium
if ($@) {
#- XXX this happens when building a synthesis for a local media from RPMs... why ?
$urpm->{error}(N("Unable to build synthesis file for medium \"%s\". Your hdlist file may be corrupted.", $medium->{name}));
+ $urpm->{error}($@);
unlink "$urpm->{statedir}/synthesis.$medium->{hdlist}";
} else {
$urpm->{log}(N("built hdlist synthesis file for medium \"%s\"", $medium->{name}));
@@ -1966,6 +1967,7 @@ this could happen if you mounted manually the directory when creating the medium
) };
if ($@) {
$urpm->{error}(N("Unable to build synthesis file for medium \"%s\". Your hdlist file may be corrupted.", $medium->{name}));
+ $urpm->{error}($@);
unlink "$urpm->{statedir}/synthesis.$medium->{hdlist}";
} else {
$urpm->{log}(N("built hdlist synthesis file for medium \"%s\"", $medium->{name}));