summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xurpmi2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index 932695c4..3fe9e833 100755
--- a/urpmi
+++ b/urpmi
@@ -648,7 +648,7 @@ my $exit_code = urpm::main_loop::run($urpm, $state,
unless ($env || $options{nolock}) {
$urpmi_lock->unlock;
- $rpm_lock->unlock;
+ $rpm_lock->unlock if $rpm_lock;
}
unless ($env) {