From a776d3e2f81b9d2ee3394956f5b726142b0fbf2c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 9 Sep 2008 22:30:00 +0000 Subject: (db_open_or_die__) ahem... --- urpm.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index 2ca2b95e..1fc60545 100644 --- a/urpm.pm +++ b/urpm.pm @@ -283,9 +283,11 @@ sub db_open_or_die_ { } sub db_open_or_die__ { - if ($options{rpmdb}) { + my ($urpm, $o_rpmdb) = @_; + my $db; + if ($o_rpmdb) { $db = new URPM; - $db->parse_synthesis($options{rpmdb}); + $db->parse_synthesis($p_rpmdb); } else { $db = urpm::db_open_or_die_($urpm); } -- cgit v1.2.1