From 7d84ce9b8afab615fbeb69bfa3f27fd3958bc1d5 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 11 Jan 2006 13:17:49 +0000 Subject: Turn nolock on when using a chroot --- urpm/args.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm') diff --git a/urpm/args.pm b/urpm/args.pm index 7b413b1d..a67427e7 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -123,7 +123,7 @@ my %options_spec = ( 'norebuild!' => sub { $urpm->{options}{norebuild} = $_[1] }, 'test!' => \$::test, 'skip=s' => \$options{skip}, - 'root=s' => sub { require File::Spec; $::root = File::Spec->rel2abs($_[1]) }, + 'root=s' => sub { require File::Spec; $::root = File::Spec->rel2abs($_[1]); $::nolock = 1 }, 'use-distrib=s' => \$::usedistrib, 'excludepath|exclude-path=s' => sub { $urpm->{options}{excludepath} = $_[1] }, 'excludedocs|exclude-docs' => sub { $urpm->{options}{excludedocs} = 1 }, @@ -218,7 +218,7 @@ my %options_spec = ( sources => \$options{sources}, force => \$options{force}, 'skip=s' => \$options{skip}, - 'root=s' => sub { require File::Spec; $options{root} = File::Spec->rel2abs($_[1]) }, + 'root=s' => sub { require File::Spec; $options{root} = File::Spec->rel2abs($_[1]); $options{nolock} = 1 }, 'use-distrib=s' => sub { if ($< != 0) { print STDERR N("You need to be root to use --use-distrib"), "\n"; -- cgit v1.2.1