diff options
author | Francois Pons <fpons@mandriva.com> | 2000-04-21 18:32:51 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-04-21 18:32:51 +0000 |
commit | 071b523e11c54dbd06ce1f0e1e70a408fed1b1ba (patch) | |
tree | 567a9380e1c00ee3b9d1df03297fa2fb80f5e027 /perl-install/install_any.pm | |
parent | 8ae9897f2abaff7e1586d666cbb6f84c44d9391d (diff) | |
download | drakx-backup-do-not-use-071b523e11c54dbd06ce1f0e1e70a408fed1b1ba.tar drakx-backup-do-not-use-071b523e11c54dbd06ce1f0e1e70a408fed1b1ba.tar.gz drakx-backup-do-not-use-071b523e11c54dbd06ce1f0e1e70a408fed1b1ba.tar.bz2 drakx-backup-do-not-use-071b523e11c54dbd06ce1f0e1e70a408fed1b1ba.tar.xz drakx-backup-do-not-use-071b523e11c54dbd06ce1f0e1e70a408fed1b1ba.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 665cdc391..df92c66b4 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -43,6 +43,7 @@ XFree86 dhcpxd pump ppp ypbind rhs-printfilters samba ncpfs kernel-fb my $postinstall_rpms = ''; my $current_medium = 1; my $asked_medium = 1; +my $cdrom = undef; sub useMedium($) { #- before ejecting the first CD, there are some files to copy! #- does nothing if the function has already been called. @@ -81,8 +82,8 @@ sub errorOpeningFile($) { my $max = 32; #- always refuse after $max tries. if ($::o->{method} eq "cdrom") { - cat_("/proc/mounts") =~ m|(/tmp/\S+)\s+/tmp/rhimage| or return; - my $cdrom = $1; + cat_("/proc/mounts") =~ m|(/tmp/\S+)\s+/tmp/rhimage| and $cdrom = $1; + return unless $cdrom; ejectCdrom($cdrom); while ($max > 0 && askChangeMedium($::o->{method}, $asked_medium)) { $current_medium = $asked_medium; |