diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-09 07:42:30 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-09 07:42:30 +0000 |
commit | 39d5d8e8c7e51adbf4bb27833dab6c84ab58c524 (patch) | |
tree | 277a801487a852e67b185c737c3404d74bd50ccd /urpmq | |
parent | 31ad4fb787dc5bc23bf8a3d708d32e3a79641949 (diff) | |
download | urpmi-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-x | urpmq | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 { |