summaryrefslogtreecommitdiffstats
path: root/urpmi.update
diff options
context:
space:
mode:
Diffstat (limited to 'urpmi.update')
-rwxr-xr-xurpmi.update2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpmi.update b/urpmi.update
index b0993770..257b0198 100755
--- a/urpmi.update
+++ b/urpmi.update
@@ -68,7 +68,7 @@ urpm::args::parse_cmdline(urpm => $urpm) or exit(1);
if ($< != 0) {
$urpm->{fatal}(1, N("Only superuser is allowed to update media"));
}
-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);
my @entries = map { $_->{name} } @{$urpm->{media}};