diff options
author | Till Kamppeter <tkamppeter@mandriva.com> | 2003-02-23 11:44:05 +0000 |
---|---|---|
committer | Till Kamppeter <tkamppeter@mandriva.com> | 2003-02-23 11:44:05 +0000 |
commit | 49048e3034b5eb9193ad5f3a3aaa56c99f6b9c39 (patch) | |
tree | f768036f9f473a3f1ec6f1e7acd4f5f6118a980e /perl-install/install_steps_interactive.pm | |
parent | 6ef45c26924167a3609b4aa56234f0d4d7a687ed (diff) | |
download | drakx-49048e3034b5eb9193ad5f3a3aaa56c99f6b9c39.tar drakx-49048e3034b5eb9193ad5f3a3aaa56c99f6b9c39.tar.gz drakx-49048e3034b5eb9193ad5f3a3aaa56c99f6b9c39.tar.bz2 drakx-49048e3034b5eb9193ad5f3a3aaa56c99f6b9c39.tar.xz drakx-49048e3034b5eb9193ad5f3a3aaa56c99f6b9c39.zip |
Fixed bug of printerdrake loosing the printer queue info during the
preparation of the "Summary" window (only if there are local
printers). No the printer queue entries should not be empty when
clicking on "Configure" in the "Printer" part of the "Summary" window.
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r-- | perl-install/install_steps_interactive.pm | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index 499d81062..80384370b 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -1045,6 +1045,7 @@ sub summary { $o->summary_prompt(\@l, $check_complete); + $o->cleanupPrinter(); install_steps::configureTimezone($o) if !$timezone_manually_set; #- do not forget it. } @@ -1056,15 +1057,18 @@ sub configurePrinter { require printer::printerdrake; require printer::detect; - #- try to determine if a question should be asked to the user or - #- if he is autorized to configure multiple queues. - my $ask_multiple_printer = $clicked ? 2 : $o && printer::detect::local_detect(); - $ask_multiple_printer-- or return; + #- $clicked = 0: Preparation of "Summary" step, check whether there are + #- are local printers. Continue for automatically setting up print + #- queues if so, return otherwise + #- $clicked = 1: User clicked "Configure" button in "Summary", enter + #- Printerdrake for manual configuration + my $go_on = $clicked ? 2 : $o && printer::detect::local_detect(); + $go_on-- or return; #- install packages needed for printer::getinfo() $::testing or $o->do_pkgs->install('foomatic-db-engine'); - #- take default configuration, this include choosing the right system + #- take default configuration, this include choosing the right spooler #- currently used by the system. my $printer = $o->{printer} ||= {}; eval { add2hash($printer, printer::main::getinfo($o->{prefix})) }; @@ -1074,6 +1078,15 @@ sub configurePrinter { } +sub cleanupPrinter { + my ($o) = @_; + #- Clean up $o->{printer} so that the records for an auto-installation + #- contain only the important stuff + return if !defined($o->{printer}); + require printer::printerdrake; + printer::printerdrake::final_cleanup($o->{printer}); +} + #------------------------------------------------------------------------------ sub setRootPassword { my ($o, $clicked) = @_; |