From 5f962ece633c366005bf8b270adce97c1bea2771 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Sun, 2 Mar 2003 23:18:41 +0000 Subject: Make file checks for CUPS package installation independent of whether "curl" or "wget" is installed to fulfill the "webfetch" requirement. --- perl-install/printer/data.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/printer') diff --git a/perl-install/printer/data.pm b/perl-install/printer/data.pm index 4985cadc4..3e21e4478 100644 --- a/perl-install/printer/data.pm +++ b/perl-install/printer/data.pm @@ -82,7 +82,10 @@ our %spoolers = ('pdq' => { /sbin/ifconfig /usr/bin/xpp /usr/share/cups/model/postscript.ppd.gz), - $::isInstall ? '/usr/bin/curl' : '/usr/bin/wget' ] ], + $::isInstall || + !(-x '/usr/bin/wget') ? + '/usr/bin/curl' : + '/usr/bin/wget' ] ], 'alternatives' => [ [ 'lpr', '/usr/bin/lpr-cups' ], [ 'lpq', '/usr/bin/lpq-cups' ], -- cgit v1.2.1