summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 49086c44..2ca2b95e 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -282,6 +282,16 @@ sub db_open_or_die_ {
db_open_or_die($urpm, $urpm->{root}, $b_write_perm);
}
+sub db_open_or_die__ {
+ if ($options{rpmdb}) {
+ $db = new URPM;
+ $db->parse_synthesis($options{rpmdb});
+ } else {
+ $db = urpm::db_open_or_die_($urpm);
+ }
+ $db;
+}
+
# please use higher level function db_open_or_die_()
sub db_open_or_die {
my ($urpm, $root, $b_write_perm) = @_;