summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-09-19 14:49:36 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-09-19 14:49:36 +0000
commit4710960f1314ec790ea876f0e50250cac59e089c (patch)
treeebf7ffacad519615bc779e28e108af7fff27d14b /perl-install/pkgs.pm
parentbb1b2617bc36e258f13d375faaaec1bfff97080e (diff)
downloaddrakx-backup-do-not-use-4710960f1314ec790ea876f0e50250cac59e089c.tar
drakx-backup-do-not-use-4710960f1314ec790ea876f0e50250cac59e089c.tar.gz
drakx-backup-do-not-use-4710960f1314ec790ea876f0e50250cac59e089c.tar.bz2
drakx-backup-do-not-use-4710960f1314ec790ea876f0e50250cac59e089c.tar.xz
drakx-backup-do-not-use-4710960f1314ec790ea876f0e50250cac59e089c.zip
no_comment
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index de156d498..953e02837 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -236,7 +236,7 @@ sub setSelectedFromCompssList($$$$$) {
sub init_db {
my ($prefix, $isUpgrade) = @_;
- my $f = "$prefix/root/" . ($isUpgrade ? "upgrade" : "install") . ".log";
+ my $f = "$prefix/root/install.log";
open(F, "> $f") ? log::l("opened $f") : log::l("Failed to open $f. No install log will be kept.");
$fd = fileno(F) || log::fd() || 2;
c::rpmErrorSetCallback($fd);
@@ -260,7 +260,7 @@ sub getHeader($) {
}
sub install {
- my ($prefix, $toInstall, $isUpgrade, $force) = @_;
+ my ($prefix, $toInstall, $force) = @_;
return if $::g_auto_install;
@@ -278,7 +278,7 @@ sub install {
$p->{file} ||= sprintf "%s-%s-%s.%s.rpm",
$p->{name}, $p->{version}, $p->{release},
c::headerGetEntry(getHeader($p), 'arch');
- c::rpmtransAddPackage($trans, getHeader($p), $p->{file}, $isUpgrade);
+ c::rpmtransAddPackage($trans, getHeader($p), $p->{file}, $p->{name} !~ /kernel/); #- TODO: replace `named kernel' by `provides kernel'
$nb++;
$total += $p->{size};
}