From c60f4e68a277f98a7694db56aec6d235bac4d5b6 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 23 Nov 2005 11:18:04 +0000 Subject: Add native error messages when build_synthesis fails --- urpm.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'urpm.pm') 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})); -- cgit v1.2.1