summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xurpmf8
1 files changed, 6 insertions, 2 deletions
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});