summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-10-14 04:58:59 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-10-14 04:58:59 +0000
commit06cc2290d0238f82869b43dd346f685f3cf93136 (patch)
treedbbeb0266ca9f3f6d36afed087ed248680535f11 /urpm.pm
parent6ea134b523ec10effc700bd915ddd22c73e37a93 (diff)
downloadurpmi-06cc2290d0238f82869b43dd346f685f3cf93136.tar
urpmi-06cc2290d0238f82869b43dd346f685f3cf93136.tar.gz
urpmi-06cc2290d0238f82869b43dd346f685f3cf93136.tar.bz2
urpmi-06cc2290d0238f82869b43dd346f685f3cf93136.tar.xz
urpmi-06cc2290d0238f82869b43dd346f685f3cf93136.zip
When a synthesis could not be build, keep the hdlist
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm6
1 files changed, 3 insertions, 3 deletions
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}));
}