From a89d4cb513f5df2942ec1ebf504ec1338bc9ff59 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 13 Oct 2005 13:47:52 +0000 Subject: Allow to work even if urpmi is locked (but warn in this case) --- urpmf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'urpmf') diff --git a/urpmf b/urpmf index bdbbcc6f..4071406e 100755 --- a/urpmf +++ b/urpmf @@ -129,8 +129,12 @@ if ($env) { $urpm->{statedir} = $env; } -# TODO - necessary to lock ? why ? -$urpm->shlock_urpmi_db; +{ + #- lock to avoid concurrent media updates, + #- but don't die if it doesn't work + local $urpm->{fatal} = sub { printf STDERR "%s\n", $_[0] }; + $urpm->shlock_urpmi_db; +} my $use_hdlist = ($params{description} || $params{sourcerpm} || $params{packager} || $params{buildhost} || $params{url} || $params{files}); -- cgit v1.2.1