summaryrefslogtreecommitdiffstats
path: root/urpmi.removemedia
diff options
context:
space:
mode:
Diffstat (limited to 'urpmi.removemedia')
-rwxr-xr-xurpmi.removemedia1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpmi.removemedia b/urpmi.removemedia
index 25e43ab6..0bf7d7db 100755
--- a/urpmi.removemedia
+++ b/urpmi.removemedia
@@ -73,6 +73,7 @@ if ($< != 0) {
$options{verbose} > 0 or $urpm->{log} = sub {};
+my $_urpmi_lock = urpm::lock::urpmi_db($urpm, 'exclusive');
urpm::media::read_config($urpm);
urpm::download::set_cmdline_proxy();
my @entries = map { $_->{name} } @{$urpm->{media}};