summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-01-11 13:17:49 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-01-11 13:17:49 +0000
commit7d84ce9b8afab615fbeb69bfa3f27fd3958bc1d5 (patch)
treefa204af10f8716d29adfb137718b1aa5bae2ab6f
parent5d200f30717d2a7115077373a4947ccf049590be (diff)
downloadurpmi-7d84ce9b8afab615fbeb69bfa3f27fd3958bc1d5.tar
urpmi-7d84ce9b8afab615fbeb69bfa3f27fd3958bc1d5.tar.gz
urpmi-7d84ce9b8afab615fbeb69bfa3f27fd3958bc1d5.tar.bz2
urpmi-7d84ce9b8afab615fbeb69bfa3f27fd3958bc1d5.tar.xz
urpmi-7d84ce9b8afab615fbeb69bfa3f27fd3958bc1d5.zip
Turn nolock on when using a chroot
-rw-r--r--urpm/args.pm4
1 files changed, 2 insertions, 2 deletions
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";