summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/args.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index a7e890b2..1b918395 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -202,7 +202,7 @@ my %options_spec = (
sources => \$options{sources},
force => \$options{force},
'skip=s' => \$options{skip},
- 'root=s' => \$options{root},
+ 'root=s' => sub { require File::Spec; $options{root} = File::Spec->rel2abs($_[1]) },
'use-distrib=s' => \$options{usedistrib},
'parallel=s' => \$options{parallel},
'env=s' => \$options{env},