diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-23 11:18:04 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-23 11:18:04 +0000 |
commit | c60f4e68a277f98a7694db56aec6d235bac4d5b6 (patch) | |
tree | 5e7586b0a546f8eefaf9b94becb7d9b879ce091e | |
parent | d0cc94ef72a16ae2c21121c5058bc28a30c47c2d (diff) | |
download | urpmi-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
-rw-r--r-- | urpm.pm | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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})); |