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) --- urpm/args.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm/args.pm') diff --git a/urpm/args.pm b/urpm/args.pm index b1d10f32..b843735d 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -120,8 +120,8 @@ my %options_spec = ( 'skip=s' => \$options{skip}, 'root=s' => sub { require File::Spec; - $options{root} = File::Spec->rel2abs($_[1]); - if (!-d $options{root}) { + $urpm->{root} = File::Spec->rel2abs($_[1]); + if (!-d $urpm->{root}) { $urpm->{fatal}->(9, N("chroot directory doesn't exist")); } $options{nolock} = 1; -- cgit v1.2.1