summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index c8bb7076..3a1f6ed1 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -115,7 +115,7 @@ if (!-e $urpm->{config}) {
$urpm->{log}(N("creating config file [%s]", $urpm->{config}));
open my $_f, '>', $urpm->{config} or $urpm->{fatal}(6, N("Can't create config file [%s]", $urpm->{config}));
}
-my $_urpmi_lock = urpm::lock::urpmi_db($urpm, 'exclusive');
+my $_urpmi_lock = urpm::lock::urpmi_db($urpm, 'exclusive', wait => $options{wait_lock});
urpm::media::read_config($urpm);
if ($options{distrib}) {