summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-10-02 11:43:15 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-10-02 11:43:15 +0000
commit380c3efb251713af72748c0be1e1646d45ba142b (patch)
tree23604d579a5671c7174d5111d0ca052761283323
parentb8f0bf2c8511923aa38fc66124549bab81f40a89 (diff)
downloadurpmi-380c3efb251713af72748c0be1e1646d45ba142b.tar
urpmi-380c3efb251713af72748c0be1e1646d45ba142b.tar.gz
urpmi-380c3efb251713af72748c0be1e1646d45ba142b.tar.bz2
urpmi-380c3efb251713af72748c0be1e1646d45ba142b.tar.xz
urpmi-380c3efb251713af72748c0be1e1646d45ba142b.zip
$rpm_lock is undefined when we create the rpmdb from scratch
-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) {