From 157fe13a76e798fa8af5f79c792c704a593f6c93 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 8 Aug 2001 18:26:31 +0000 Subject: add interactive_pkgs stuff --- perl-install/printerdrake.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'perl-install/printerdrake.pm') diff --git a/perl-install/printerdrake.pm b/perl-install/printerdrake.pm index 49a392312..71b2159fb 100644 --- a/perl-install/printerdrake.pm +++ b/perl-install/printerdrake.pm @@ -131,7 +131,7 @@ complete => sub { #- LPD does not support filtered queues to a remote LPD server by itself #- It needs an additional program as "rlpr" - if ($printer->{SPOOLER} eq 'lpd') {$in->do_pkgs->install('rlpr');} + $printer->{SPOOLER} eq 'lpd' and $in->do_pkgs->install('rlpr'); 1; } @@ -336,8 +336,7 @@ complete => sub { join '', ("socket://$remotehost", $remoteport ? (":$remoteport") : ()); #- LPD and LPRng need netcat ('nc') to access to socket printers - if (($printer->{SPOOLER} eq 'lpd') || - ($printer->{SPOOLER} eq 'lprng')) {$in->do_pkgs->install('nc');} + $printer->{SPOOLER} eq 'lpd' || $printer->{SPOOLER} eq 'lprng' and $in->do_pkgs->install('nc'); 1; } @@ -742,8 +741,8 @@ sub main { # printerdrake does not work without foomatic, and for more convenience # we install some more stuff if (!$::testing) { - $in->do_pkgs->install(('foomatic', 'printer-utils','printer-testpages', - ($in->do_pkgs->is_installed("gimp") ? 'gimpprint' : ()))); + $in->do_pkgs->install('foomatic', 'printer-utils','printer-testpages', + if_($in->do_pkgs->is_installed('gimp'), 'gimpprint')); } # only experts should be asked for the spooler -- cgit v1.2.1