summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-23 10:59:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-23 10:59:40 +0000
commit94bd3955966fa9783e4d61fd78d8a1fee45c2b2c (patch)
treedf72095ee331f53ecb086572e40bc49b861bc4a9
parent6aed7e5429cab61514fe2eb3cacad3d11462cd5f (diff)
downloadurpmi-94bd3955966fa9783e4d61fd78d8a1fee45c2b2c.tar
urpmi-94bd3955966fa9783e4d61fd78d8a1fee45c2b2c.tar.gz
urpmi-94bd3955966fa9783e4d61fd78d8a1fee45c2b2c.tar.bz2
urpmi-94bd3955966fa9783e4d61fd78d8a1fee45c2b2c.tar.xz
urpmi-94bd3955966fa9783e4d61fd78d8a1fee45c2b2c.zip
remove a "Use of undefined value ..."
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 48d51444..8a6c7792 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -67,7 +67,7 @@ sub file_from_local_url {
sub db_open_or_die {
my ($urpm, $root, $b_write_perm) = @_;
- my $db = URPM::DB::open($root, $b_write_perm)
+ my $db = URPM::DB::open($root, $b_write_perm || 0)
or $urpm->{fatal}(9, N("unable to open rpmdb"));
$db;