summaryrefslogtreecommitdiffstats
path: root/perl-install/printer
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-01-07 10:09:48 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-01-07 10:09:48 +0000
commiteda7f64de494e314e5d7f2d1d648ba9f3622c0d6 (patch)
tree46e13c585210f1a1d3b368571d3bd63bf9777892 /perl-install/printer
parent6e5391c48da96137fe7ccf1e74e6492ac0aca766 (diff)
downloaddrakx-backup-do-not-use-eda7f64de494e314e5d7f2d1d648ba9f3622c0d6.tar
drakx-backup-do-not-use-eda7f64de494e314e5d7f2d1d648ba9f3622c0d6.tar.gz
drakx-backup-do-not-use-eda7f64de494e314e5d7f2d1d648ba9f3622c0d6.tar.bz2
drakx-backup-do-not-use-eda7f64de494e314e5d7f2d1d648ba9f3622c0d6.tar.xz
drakx-backup-do-not-use-eda7f64de494e314e5d7f2d1d648ba9f3622c0d6.zip
simplif installed spoolers "detection"
Diffstat (limited to 'perl-install/printer')
-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($) {