diff options
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-x | urpmi.addmedia | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia index 1fbded3b..29fe3170 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -123,6 +123,7 @@ if (!-e $urpm->{config}) { $urpm->{error}(N("Will create 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'); urpm::media::read_config($urpm); if ($options{distrib}) { |