From 380c3efb251713af72748c0be1e1646d45ba142b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 2 Oct 2007 11:43:15 +0000 Subject: $rpm_lock is undefined when we create the rpmdb from scratch --- urpmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.1