From 4703bbea37b0b9fa4ded03d0b3d6e495728375f5 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 25 Apr 2005 08:50:22 +0000 Subject: Allow relative pathnames in --root (Michael Scherer) --- urpm/args.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, -- cgit v1.2.1