From 08837240e8063a5cee53867f165a479423b3b732 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 9 Mar 2009 18:05:27 +0000 Subject: (_install_raw) use new urpmi API in order to fix detecting whether installing packages succedded or not (especially usefull for building ones) --- perl-install/install/NEWS | 3 +++ perl-install/install/pkgs.pm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index bccb70c4d..4c9f8d5fa 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,6 @@ +- use new urpmi API in order to fix detecting whether installing + packages succedded or not + Version 12.11 - 9 March 2009 - fix accessing CD-ROM based media on x86_64 diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index 87b1b88ad..f85a5f571 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -733,7 +733,7 @@ sub _install_raw { my $exit_code = urpm::main_loop::run($packages, $packages->{state}, undef, undef, undef, { open_helper => $callback, close_helper => sub { - my ($packages, $_type, $id) = @_; + my ($db, $packages, $_type, $id) = @_; &$callback; my $pkg = defined $id && $packages->{depslist}[$id] or return; my $check_installed; -- cgit v1.2.1