diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-27 12:29:30 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-27 12:29:30 +0000 |
commit | 60f00ed59887cd32d5cd7252de138bca359e67b7 (patch) | |
tree | 1d6543b22db541c87d9acaca4b08a1284d323546 | |
parent | 13b713dc4315f11f9408f7c1995b1fd03a75c008 (diff) | |
download | urpmi-60f00ed59887cd32d5cd7252de138bca359e67b7.tar urpmi-60f00ed59887cd32d5cd7252de138bca359e67b7.tar.gz urpmi-60f00ed59887cd32d5cd7252de138bca359e67b7.tar.bz2 urpmi-60f00ed59887cd32d5cd7252de138bca359e67b7.tar.xz urpmi-60f00ed59887cd32d5cd7252de138bca359e67b7.zip |
Don't let urpmq lock the urpmi db if it only dumps the configuration
-rwxr-xr-x | urpmq | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -111,6 +111,7 @@ $urpm::args::options{nodepslist} = $urpm::args::options{list_aliases} || $urpm::args::options{list_media} || $urpm::args::options{dump_config} || $urpm::args::options{list_url}; +$urpm::args::options{nolock} = 1 if $urpm::args::options{nodepslist}; if ($urpm::args::options{env}) { print STDERR N("using specific environment on %s\n", $urpm::args::options{env}); @@ -123,7 +124,7 @@ if ($urpm::args::options{env}) { $urpm::args::options{upgrade} && !$urpm::args::options{env} && !$urpm::args::options{nolock} and $urpm->shlock_rpm_db; -$urpm->shlock_urpmi_db; +$urpm::args::options{nolock} or $urpm->shlock_urpmi_db; $urpm->configure( nocheck_access => 1, noskipping => $urpm::args::options{nodepslist}, @@ -437,7 +438,7 @@ if ($urpm::args::options{list_aliases}) { exit 0; } } -$urpm->unlock_urpmi_db; +$urpm::args::options{nolock} or $urpm->unlock_urpmi_db; $urpm::args::options{upgrade} && !$urpm::args::options{env} && !$urpm::args::options{nolock} and $urpm->unlock_rpm_db; |