summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-09 07:42:30 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-09 07:42:30 +0000
commit39d5d8e8c7e51adbf4bb27833dab6c84ab58c524 (patch)
tree277a801487a852e67b185c737c3404d74bd50ccd /urpmq
parent31ad4fb787dc5bc23bf8a3d708d32e3a79641949 (diff)
downloadurpmi-39d5d8e8c7e51adbf4bb27833dab6c84ab58c524.tar
urpmi-39d5d8e8c7e51adbf4bb27833dab6c84ab58c524.tar.gz
urpmi-39d5d8e8c7e51adbf4bb27833dab6c84ab58c524.tar.bz2
urpmi-39d5d8e8c7e51adbf4bb27833dab6c84ab58c524.tar.xz
urpmi-39d5d8e8c7e51adbf4bb27833dab6c84ab58c524.zip
Introduce a --nolock option in urpmi and urpmq.
Use it for parallel distribution over ssh on localhost
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq6
1 files changed, 4 insertions, 2 deletions
diff --git a/urpmq b/urpmq
index a1d4cca1..da12eded 100755
--- a/urpmq
+++ b/urpmq
@@ -120,7 +120,8 @@ if ($urpm::args::options{env}) {
$urpm->{statedir} = $urpm::args::options{env};
}
-$urpm::args::options{upgrade} && !$urpm::args::options{env} and $urpm->shlock_rpm_db;
+$urpm::args::options{upgrade} && !$urpm::args::options{env} && !$urpm::args::options{nolock}
+ and $urpm->shlock_rpm_db;
$urpm->shlock_urpmi_db;
$urpm->configure(
nocheck_access => 1,
@@ -435,7 +436,8 @@ if ($urpm::args::options{list_aliases}) {
}
}
$urpm->unlock_urpmi_db;
-$urpm::args::options{upgrade} && !$urpm::args::options{env} and $urpm->unlock_rpm_db;
+$urpm::args::options{upgrade} && !$urpm::args::options{env} && !$urpm::args::options{nolock}
+ and $urpm->unlock_rpm_db;
#- print sub for query.
my $query_sub = sub {