summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 042d27f9..a7e890b2 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -109,7 +109,7 @@ my %options_spec = (
'norebuild!' => sub { $urpm->{options}{norebuild} = $_[1] },
'test!' => \$::test,
'skip=s' => \$options{skip},
- 'root=s' => \$::root,
+ 'root=s' => sub { require File::Spec; $::root = File::Spec->rel2abs($_[1]) },
'use-distrib=s' => \$::usedistrib,
'excludepath|exclude-path=s' => sub { $urpm->{options}{excludepath} = $_[1] },
'excludedocs|exclude-docs' => sub { $urpm->{options}{excludedocs} = 1 },