diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-24 21:03:04 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-24 21:03:04 +0000 |
commit | eec6835ee66c2bddfeb0afdc1e8e9aa7b00271f7 (patch) | |
tree | 885cf94d87e96645bde2dd2fcc807dccc6e5b880 /urpm | |
parent | 088165875f924898117e6e3172ad6d96ed95de94 (diff) | |
download | urpmi-eec6835ee66c2bddfeb0afdc1e8e9aa7b00271f7.tar urpmi-eec6835ee66c2bddfeb0afdc1e8e9aa7b00271f7.tar.gz urpmi-eec6835ee66c2bddfeb0afdc1e8e9aa7b00271f7.tar.bz2 urpmi-eec6835ee66c2bddfeb0afdc1e8e9aa7b00271f7.tar.xz urpmi-eec6835ee66c2bddfeb0afdc1e8e9aa7b00271f7.zip |
fix display error message when need_hdlist and no hdlist
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/media.pm | 7 |
1 files changed, 5 insertions, 2 deletions
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}); |