summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-04 10:22:32 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-04 10:22:32 +0000
commit64e61d2a7fa74985ae689bf940c1ae4df5843403 (patch)
tree53cb8a5e1f7e1ad864e36b2d3bba2368193c7be0
parenta0a954798d859d1109500da8f44d69efdaffb7f6 (diff)
downloaddrakx-64e61d2a7fa74985ae689bf940c1ae4df5843403.tar
drakx-64e61d2a7fa74985ae689bf940c1ae4df5843403.tar.gz
drakx-64e61d2a7fa74985ae689bf940c1ae4df5843403.tar.bz2
drakx-64e61d2a7fa74985ae689bf940c1ae4df5843403.tar.xz
drakx-64e61d2a7fa74985ae689bf940c1ae4df5843403.zip
(_install_raw) simplify 'open_helper': just call our callback and drop
the last bits of old packages filling code
-rw-r--r--perl-install/install/pkgs.pm9
1 files changed, 2 insertions, 7 deletions
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;