diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-04-25 08:50:22 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-04-25 08:50:22 +0000 |
commit | 4703bbea37b0b9fa4ded03d0b3d6e495728375f5 (patch) | |
tree | 08157643dcba434e73121428ed15a8352c51fbd3 /urpm | |
parent | 51758bbba6ee982e9f54c00917dbc76557748aca (diff) | |
download | urpmi-4703bbea37b0b9fa4ded03d0b3d6e495728375f5.tar urpmi-4703bbea37b0b9fa4ded03d0b3d6e495728375f5.tar.gz urpmi-4703bbea37b0b9fa4ded03d0b3d6e495728375f5.tar.bz2 urpmi-4703bbea37b0b9fa4ded03d0b3d6e495728375f5.tar.xz urpmi-4703bbea37b0b9fa4ded03d0b3d6e495728375f5.zip |
Allow relative pathnames in --root (Michael Scherer)
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/args.pm | 2 |
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 }, |