summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-07-23 21:15:31 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-07-23 21:15:31 +0000
commit5a632fe532f355a2583970fefb2ed8ceec6c9460 (patch)
tree53c1ddbe41a4e8dad28ca4382794803ae177fbc2 /perl-install/pkgs.pm
parentbc25ea4a6ee8505a77972e2a723607735a4e19f9 (diff)
downloaddrakx-5a632fe532f355a2583970fefb2ed8ceec6c9460.tar
drakx-5a632fe532f355a2583970fefb2ed8ceec6c9460.tar.gz
drakx-5a632fe532f355a2583970fefb2ed8ceec6c9460.tar.bz2
drakx-5a632fe532f355a2583970fefb2ed8ceec6c9460.tar.xz
drakx-5a632fe532f355a2583970fefb2ed8ceec6c9460.zip
no_comment
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index bb485e767..5407cd045 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -181,10 +181,10 @@ sub install {
my ($total, $nb);
foreach my $p (@$toInstall) {
- $p->{file} ||=
- install_any::imageGetFile(sprintf "%s-%s-%s.%s.rpm",
- map { c::headerGetEntry($p->{header}, $_) }
- qw(name version release arch));
+ local *F;
+ open F, $p->{file} or die "error opening package $p->{name} (file $p->{file})";
+ $p->{header} = c::rpmReadPackageHeader(fileno F);
+
c::rpmtransAddPackage($trans, $p->{header}, $p->{file}, $isUpgrade);
$nb++;
$total += $p->{size};