diff options
author | Francois Pons <fpons@mandriva.com> | 2002-09-02 14:28:57 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-09-02 14:28:57 +0000 |
commit | 47a34688d44f0d7639c912dfefca91c3f67adfa6 (patch) | |
tree | 2d9a837a59d1a32b44f66f0e9f2929316cac4121 /perl-install/pkgs.pm | |
parent | 139aa09f5c11569fbed25e2e3a0a92171750bda6 (diff) | |
download | drakx-47a34688d44f0d7639c912dfefca91c3f67adfa6.tar drakx-47a34688d44f0d7639c912dfefca91c3f67adfa6.tar.gz drakx-47a34688d44f0d7639c912dfefca91c3f67adfa6.tar.bz2 drakx-47a34688d44f0d7639c912dfefca91c3f67adfa6.tar.xz drakx-47a34688d44f0d7639c912dfefca91c3f67adfa6.zip |
fixed to call to getFile by giving medium description, necessary for updates.
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r-- | perl-install/pkgs.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index d80d3c42f..73d0be5af 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -1021,10 +1021,10 @@ sub install($$$;$$) { my @probs = $trans->run($packages, force => 1, nosize => 1, callback_open => sub { my ($data, $type, $id) = @_; my $pkg = defined $id && $data->{depslist}[$id]; + my $medium = packageMedium($packages, $pkg); my $f = $pkg && $pkg->filename; print LOG "$f\n"; - #my $fd = install_any::getFile($f, $media->{$p->[$MEDIUM]}{descr}); - my $fd = install_any::getFile($f); + my $fd = install_any::getFile($f, $medium->{descr}); $fd ? fileno $fd : -1; }, callback_close => sub { my ($data, $type, $id) = @_; |