summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-23 09:30:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-23 09:30:58 +0000
commit0bf8f352836b0e1b584638789558246871912a87 (patch)
treeabc607455ca19ae43ac84ab84b6dd405f8962588
parent070ad1335444e9bdc171f6f8d77cf759395a9db9 (diff)
downloadurpmi-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.pm2
1 files changed, 0 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index c6e826eb..48d51444 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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;
}