summaryrefslogtreecommitdiffstats
path: root/urpmi.update
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-11 11:40:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-11 11:40:43 +0000
commit58c4003c40a63ce57cc587b4651926c3a34c3632 (patch)
tree7d24d46e6c85915e0a88acc07c3b13defea9aead /urpmi.update
parentf71c4570e3918f9fb10e633cce55a214f476d828 (diff)
downloadurpmi-58c4003c40a63ce57cc587b4651926c3a34c3632.tar
urpmi-58c4003c40a63ce57cc587b4651926c3a34c3632.tar.gz
urpmi-58c4003c40a63ce57cc587b4651926c3a34c3632.tar.bz2
urpmi-58c4003c40a63ce57cc587b4651926c3a34c3632.tar.xz
urpmi-58c4003c40a63ce57cc587b4651926c3a34c3632.zip
- all tools
o new option --wait-lock (#13025)
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}};