diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-23 09:30:58 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-23 09:30:58 +0000 |
commit | 0bf8f352836b0e1b584638789558246871912a87 (patch) | |
tree | abc607455ca19ae43ac84ab84b6dd405f8962588 | |
parent | 070ad1335444e9bdc171f6f8d77cf759395a9db9 (diff) | |
download | urpmi-0bf8f352836b0e1b584638789558246871912a87.tar urpmi-0bf8f352836b0e1b584638789558246871912a87.tar.gz urpmi-0bf8f352836b0e1b584638789558246871912a87.tar.bz2 urpmi-0bf8f352836b0e1b584638789558246871912a87.tar.xz urpmi-0bf8f352836b0e1b584638789558246871912a87.zip |
better no lock than bad lock on should-not-be-used function
-rw-r--r-- | urpm.pm | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -175,10 +175,8 @@ sub download_source_packages { my %error_sources; require urpm::get_pkgs; - my $lock = !$options{nolock} && urpm::sys::lock_urpmi_db($urpm, 'exclusive'); urpm::removable::copy_packages_of_removable_media($urpm, $list, \%sources, $options{ask_for_medium}) or return; urpm::get_pkgs::download_packages_of_distant_media($urpm, $list, \%sources, \%error_sources, %options); - $lock and urpm::sys::unlock($lock); %sources, %error_sources; } |