From 06cc2290d0238f82869b43dd346f685f3cf93136 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 14 Oct 2004 04:58:59 +0000 Subject: When a synthesis could not be build, keep the hdlist --- urpm.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index f1a1ee33..6791d11c 100644 --- a/urpm.pm +++ b/urpm.pm @@ -1831,9 +1831,9 @@ this could happen if you mounted manually the directory when creating the medium synthesis => "$urpm->{statedir}/synthesis.$medium->{hdlist}", ) }; if ($@) { - $urpm->{error}(N("Unable to build hdlist and synthesis files for medium \"%s\".", $medium->{name})); - unlink "$urpm->{statedir}/$medium->{hdlist}", "$urpm->{statedir}/synthesis.$medium->{hdlist}"; - $medium->{ignore} = 1; + #- 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})); + unlink "$urpm->{statedir}/synthesis.$medium->{hdlist}"; } else { $urpm->{log}(N("built hdlist synthesis file for medium \"%s\"", $medium->{name})); } -- cgit v1.2.1