diff options
Diffstat (limited to 'urpmi.update')
-rwxr-xr-x | urpmi.update | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/urpmi.update b/urpmi.update index e86f4013..fac9cd8d 100755 --- a/urpmi.update +++ b/urpmi.update @@ -68,6 +68,7 @@ $options{verbose} > 0 or $urpm->{log} = sub {}; if ($< != 0) { $urpm->{fatal}(1, N("Only superuser is allowed to update media")); } +my $_urpmi_lock = urpm::lock::urpmi_db($urpm, 'exclusive'); urpm::media::read_config($urpm); my @entries = map { $_->{name} } @{$urpm->{media}}; |