summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-29 15:46:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-29 15:46:25 +0000
commit50bfacb9170146abf3c11332cf509734d117a91f (patch)
tree6b07521f180be3ca940fdfa77fb2d5273a3cad19 /urpm/args.pm
parentdf95f65347ad42a943b273e0bbaaf865826c93cc (diff)
downloadurpmi-50bfacb9170146abf3c11332cf509734d117a91f.tar
urpmi-50bfacb9170146abf3c11332cf509734d117a91f.tar.gz
urpmi-50bfacb9170146abf3c11332cf509734d117a91f.tar.bz2
urpmi-50bfacb9170146abf3c11332cf509734d117a91f.tar.xz
urpmi-50bfacb9170146abf3c11332cf509734d117a91f.zip
directly set $urpm->{root}, it's simpler
(also use it in urpm::get_pkgs::selected2list() even if callers didn't pass it)
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm4
1 files changed, 2 insertions, 2 deletions
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;