diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-11-25 13:16:14 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-11-25 13:16:14 +0000 |
commit | d5a136439dbb6d7191d90c44760c4025cb03d4cd (patch) | |
tree | f665c3ac0884ab9a1e04fcc117ab3e38df217793 /perl-install/standalone/drakfloppy | |
parent | 77594868b1cb9b5c6cf7656cdcd5da08a5b2d457 (diff) | |
download | drakx-backup-do-not-use-d5a136439dbb6d7191d90c44760c4025cb03d4cd.tar drakx-backup-do-not-use-d5a136439dbb6d7191d90c44760c4025cb03d4cd.tar.gz drakx-backup-do-not-use-d5a136439dbb6d7191d90c44760c4025cb03d4cd.tar.bz2 drakx-backup-do-not-use-d5a136439dbb6d7191d90c44760c4025cb03d4cd.tar.xz drakx-backup-do-not-use-d5a136439dbb6d7191d90c44760c4025cb03d4cd.zip |
minimal perl_checker compliance
Diffstat (limited to 'perl-install/standalone/drakfloppy')
-rwxr-xr-x | perl-install/standalone/drakfloppy | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/standalone/drakfloppy b/perl-install/standalone/drakfloppy index da90aec0d..242b11c3a 100755 --- a/perl-install/standalone/drakfloppy +++ b/perl-install/standalone/drakfloppy @@ -297,10 +297,9 @@ sub build_it() { err_dialog(N("Error"), N("There is no medium or it is write-protected for device %s.\nPlease insert one.", $device_combo->entry->get_text), { cancel => 1 }) ? goto test : return 0; } - local *STATUS; - open STATUS, $co or do { err_dialog(N("Error"), N("Unable to fork: %s", $!)); return }; - my $log = join('', <STATUS>); - if (close STATUS) { + open(my $STATUS, $co) or do { err_dialog(N("Error"), N("Unable to fork: %s", $!)); return }; + my $log = join('', <$STATUS>); + if (close $STATUS) { info_dialog(N("Floppy creation completed"), N("The creation of the boot floppy has been successfully completed \n")); ugtk2->exit; } else { |