From 58c4003c40a63ce57cc587b4651926c3a34c3632 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 11 Aug 2007 11:40:43 +0000 Subject: - all tools o new option --wait-lock (#13025) --- urpmi.addmedia | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpmi.addmedia') 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}) { -- cgit v1.2.1