From 50bfacb9170146abf3c11332cf509734d117a91f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 29 Nov 2006 15:46:25 +0000 Subject: directly set $urpm->{root}, it's simpler (also use it in urpm::get_pkgs::selected2list() even if callers didn't pass it) --- urpmq | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'urpmq') diff --git a/urpmq b/urpmq index c8aeffd9..ee29d74a 100755 --- a/urpmq +++ b/urpmq @@ -68,6 +68,8 @@ usage: ") . N(" --parallel - distributed urpmi across machines of alias. ") . N(" --use-distrib - configure urpmi on the fly from a distrib tree. This permit to querying a distro. +") . N(" --probe-synthesis - use synthesis file. +") . N(" --probe-hdlist - use hdlist file. ") . N(" --wget - use wget to retrieve distant files. ") . N(" --curl - use curl to retrieve distant files. ") . N(" --prozilla - use prozilla to retrieve distant files. @@ -151,8 +153,8 @@ urpm::media::configure($urpm, sortmedia => $urpm::args::options{sortmedia}, synthesis => $urpm::args::options{synthesis}, update => $urpm::args::options{update}, - root => $urpm::args::options{root}, parallel => $urpm::args::options{parallel}, + probe_with => $urpm::args::options{probe_with}, usedistrib => $urpm::args::options{usedistrib}, cmdline_skiplist => $urpm::args::options{skip}, ); @@ -334,9 +336,7 @@ if ($urpm::args::options{list_aliases}) { $pkg && $pkg->header_filename } @selected)) { my %h = map { $_ => 1 } @headers; @headers = keys %h; - my $hdlist_path = $medium->{virtual} - ? urpm::media::hdlist_or_synthesis_for_virtual_medium($medium) - : urpm::media::statedir_hdlist($urpm, $medium); + my $hdlist_path = urpm::media::any_hdlist($urpm, $medium); if (-s $hdlist_path) { require MDV::Packdrakeng; my $packer = MDV::Packdrakeng->open(archive => $hdlist_path, quiet => 1); -- cgit v1.2.1