From 3880463a92142896704deca4d341af93be762b84 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 19 Dec 2007 12:16:49 +0000 Subject: - all tools: o drop hdlist support (will be replaced with xml media_info) --- urpmf | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'urpmf') diff --git a/urpmf b/urpmf index d8d375fb..23e457a1 100755 --- a/urpmf +++ b/urpmf @@ -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 } -- cgit v1.2.1