summaryrefslogtreecommitdiffstats
path: root/urpmf
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-19 12:16:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-19 12:16:49 +0000
commit3880463a92142896704deca4d341af93be762b84 (patch)
tree083ddaa4280c8f7bd74b0619ebe5d40fd4a9d038 /urpmf
parentfa957b2abb16441c131d8242b22579ca63d70c01 (diff)
downloadurpmi-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-xurpmf12
1 files changed, 4 insertions, 8 deletions
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
}