From 64e61d2a7fa74985ae689bf940c1ae4df5843403 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 4 Mar 2009 10:22:32 +0000 Subject: (_install_raw) simplify 'open_helper': just call our callback and drop the last bits of old packages filling code --- perl-install/install/pkgs.pm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'perl-install/install') diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index 26ba7ba7b..edf34dd84 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -730,13 +730,8 @@ sub _install_raw { log::l("rpm transactions start"); my $exit_code = urpm::main_loop::run($packages, $packages->{state}, undef, undef, undef, { - open_helper => sub { - my ($packages, $_type, $id) = @_; - &$callback; - my $pkg = defined $id && $packages->{depslist}[$id]; - my $medium = packageMedium($packages, $pkg); - print $LOG "$f\n"; - }, close_helper => sub { + open_helper => $callback, + close_helper => sub { my ($packages, $_type, $id) = @_; &$callback; my $pkg = defined $id && $packages->{depslist}[$id] or return; -- cgit v1.2.1