diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-09-25 22:00:16 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-09-25 22:00:16 +0000 |
commit | e38950a33c3505db7e79547622aa5946cfe88d5c (patch) | |
tree | ecb94365673b2f74e264d0cae8467a4481aea21f /perl-install/install_steps.pm | |
parent | 5692f13be4ba57a7f52b54a7576bd858f418dc14 (diff) | |
download | drakx-backup-do-not-use-e38950a33c3505db7e79547622aa5946cfe88d5c.tar drakx-backup-do-not-use-e38950a33c3505db7e79547622aa5946cfe88d5c.tar.gz drakx-backup-do-not-use-e38950a33c3505db7e79547622aa5946cfe88d5c.tar.bz2 drakx-backup-do-not-use-e38950a33c3505db7e79547622aa5946cfe88d5c.tar.xz drakx-backup-do-not-use-e38950a33c3505db7e79547622aa5946cfe88d5c.zip |
no_comment
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r-- | perl-install/install_steps.pm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 39b67f512..48501982d 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -245,7 +245,7 @@ sub selectPackagesToUpgrade { } sub choosePackages { - my ($o, $packages, $compss, $compssUsers, $compssUsersSorted, $first_time) = @_; + my ($o, $packages, $compss, $compssUsers, $first_time) = @_; #- now for upgrade, package that must be upgraded are #- selected first, after is used the same scheme as install. @@ -287,6 +287,9 @@ sub beforeInstallPackages { } } + #- copy RPM-GPG *before* installing packages (otherwise may be the CD2) + install_any::getAndSaveFile('RPM-GPG-KEYS', "$o->{prefix}/root/tmp/RPM-GPG-KEYS"); + log::l("before install packages, after copy"); #- some packages need such files for proper installation. any::writeandclean_ldsoconf($o->{prefix}); @@ -437,12 +440,10 @@ Consoles 1,3,4,7 may also contain interesting information"; install_any::install_urpmi($o->{prefix}, $o->{method}, $o->{packages}[2]); substInFile { s/^urpmi\n//; $_ .= "urpmi\n" if eof } "$msec/group.conf" if -d $msec; } - { - my $f = "$o->{prefix}/root/tmp/RPM-GPG-KEYS"; - install_any::getAndSaveFile('RPM-GPG-KEYS', $f); - run_program::rooted($o->{prefix}, qw(gpg --import --homedir /etc/rpm /root/tmp/RPM-GPG-KEYS)); - unlink $f; - } + + #- RPM-GPG-KEYS is copied earlier to ensure we have it + run_program::rooted($o->{prefix}, qw(gpg --import --homedir /etc/rpm /root/tmp/RPM-GPG-KEYS)); + unlink "$o->{prefix}/root/tmp/RPM-GPG-KEYS"; # #- update language and icons for KDE. # update_userkderc($o->{prefix}, 'Locale', Language => ""); |