diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-12-19 12:16:49 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-12-19 12:16:49 +0000 |
commit | 3880463a92142896704deca4d341af93be762b84 (patch) | |
tree | 083ddaa4280c8f7bd74b0619ebe5d40fd4a9d038 /urpmf | |
parent | fa957b2abb16441c131d8242b22579ca63d70c01 (diff) | |
download | urpmi-3880463a92142896704deca4d341af93be762b84.tar urpmi-3880463a92142896704deca4d341af93be762b84.tar.gz urpmi-3880463a92142896704deca4d341af93be762b84.tar.bz2 urpmi-3880463a92142896704deca4d341af93be762b84.tar.xz urpmi-3880463a92142896704deca4d341af93be762b84.zip |
- all tools:
o drop hdlist support (will be replaced with xml media_info)
Diffstat (limited to 'urpmf')
-rwxr-xr-x | urpmf | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -196,7 +196,7 @@ if ($env) { } my $_lock = urpm::lock::urpmi_db($urpm, '', nofatal => 1, wait => $options{wait_lock}); -my $need_hdlist = grep { $usedtags{$_} } qw( +my $need_xml = grep { $usedtags{$_} } qw( buildhost buildtime conf_files @@ -220,13 +220,9 @@ urpm::media::configure($urpm, usedistrib => $urpm::args::options{usedistrib}, update => $update, callback => $callback, - need_hdlist => $need_hdlist, + need_xml => $need_xml, ); -if ($need_hdlist) { - my @hdlist_media = grep { !$_->{ignore} && -e urpm::media::any_hdlist($urpm, $_) } @{$urpm->{media}}; - if (!@hdlist_media) { - print N("Note: since no media searched uses hdlists, urpmf was unable to return any result\n"); - print N("You may want to use --name to search for package names.\n") if !$usedtags{name}; - } +if ($need_xml) { + # TODO } |