Skip to content

Commit

Permalink
Try to load DB_File when GDBM_File is not available. (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
trizen committed Sep 6, 2022
1 parent b83db97 commit faa989a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obmenu-generator
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ if (!$db_clean and ((-M $config_file) < (-M $cache_db) or (-M _) > (-M $schema_f
$db_clean = 1;
}

eval { require GDBM_File };
eval { require GDBM_File } // eval { require DB_File };

dbmopen(my %cache_db, $cache_db, 0777)
or die "Can't create/access database <<$cache_db>>: $!";
Expand Down

0 comments on commit faa989a

Please sign in to comment.