summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/printer/main.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm
index e593988df..b7d1275a1 100644
--- a/perl-install/printer/main.pm
+++ b/perl-install/printer/main.pm
@@ -49,11 +49,7 @@ sub spooler {
# LPRng is not officially supported any more since Mandrake 9.0, so
# show it only in the spooler menu when it was manually installed.
- my @res;
- my @spoolers = qw(cups pdq);
- push @spoolers, 'lprng' if files_exist(qw(/usr/lib/filters/lpf /usr/sbin/lpd));
- push @res, $spoolers{$_}{long_name} foreach @spoolers;
- return @res;
+ return map { $spoolers{$_}{long_name} } qw(cups pdq), if_(files_exist(qw(/usr/lib/filters/lpf /usr/sbin/lpd)), 'lprng' );
}
sub printer_type($) {