From eec6835ee66c2bddfeb0afdc1e8e9aa7b00271f7 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 24 Nov 2006 21:03:04 +0000 Subject: fix display error message when need_hdlist and no hdlist --- urpm/media.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'urpm') diff --git a/urpm/media.pm b/urpm/media.pm index 58a64b81..6f4db07a 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -517,10 +517,13 @@ sub _parse_media { hdlist_or_synthesis_for_virtual_medium($_), $options->{callback}); $need_second_pass = 1 if !$is_second_pass && !$_->{synthesis} && !$options->{no_second_pass}; + $_->{synthesis} && $options->{need_hdlist} + and $urpm->{error}(N("Note: no hdlist for medium \"%s\", urpmf is unable to return any result for it", $_->{name})); } else { if (!_parse_hdlist($urpm, $_, statedir_hdlist($urpm, $_), $options->{callback})) { - $urpm->{error}(N("Note: no hdlist for medium \"%s\", urpmf is unable to return any result for it\n", $_->{name})); - #- bad, we need hdlist but we don't have it + $options->{need_hdlist} + and $urpm->{error}(N("Note: no hdlist for medium \"%s\", urpmf is unable to return any result for it", $_->{name})); + _parse_synthesis($urpm, $_, statedir_synthesis($urpm, $_), $options->{callback}); -- cgit v1.2.1