diff options
-rw-r--r-- | urpm.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |