summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-01 10:47:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-01 10:47:51 +0000
commitd99173d6e61042d0ba9c4a6372c9e2a47d3bf942 (patch)
tree91dbcb3630e7fc7e18609cc7f758d1d311d56b4d
parent68fbc16b85fc22ad7c95922325748a2bc48fbdac (diff)
downloadurpmi-d99173d6e61042d0ba9c4a6372c9e2a47d3bf942.tar
urpmi-d99173d6e61042d0ba9c4a6372c9e2a47d3bf942.tar.gz
urpmi-d99173d6e61042d0ba9c4a6372c9e2a47d3bf942.tar.bz2
urpmi-d99173d6e61042d0ba9c4a6372c9e2a47d3bf942.tar.xz
urpmi-d99173d6e61042d0ba9c4a6372c9e2a47d3bf942.zip
simplify rpmdb_to_synthesis() prototype
-rw-r--r--urpm/bug_report.pm4
-rwxr-xr-xurpmi2
2 files changed, 3 insertions, 3 deletions
diff --git a/urpm/bug_report.pm b/urpm/bug_report.pm
index 6e243252..b01e9a94 100644
--- a/urpm/bug_report.pm
+++ b/urpm/bug_report.pm
@@ -5,9 +5,9 @@ use urpm::msg;
sub rpmdb_to_synthesis {
- my ($urpm, $synthesis, $root) = @_;
+ my ($urpm, $synthesis) = @_;
- my $db = urpm::db_open_or_die($urpm, $root);
+ my $db = urpm::db_open_or_die($urpm, $urpm->{root});
my $sig_handler = sub { undef $db; exit 3 };
local $SIG{INT} = $sig_handler;
local $SIG{QUIT} = $sig_handler;
diff --git a/urpmi b/urpmi
index c9749d46..3cc0400e 100755
--- a/urpmi
+++ b/urpmi
@@ -388,7 +388,7 @@ urpm::media::configure($urpm,
if ($bug) {
require urpm::bug_report;
- urpm::bug_report::rpmdb_to_synthesis($urpm, "$bug/rpmdb.cz", $urpm->{root});
+ urpm::bug_report::rpmdb_to_synthesis($urpm, "$bug/rpmdb.cz");
}
urpm::select::set_priority_upgrade_option($urpm, $options{previous_priority_upgrade});