From d3157a39407cc1959cff7bbd001ea9e155ae69ba Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 15 Nov 2005 16:47:26 +0000 Subject: adapt to new cat_() only accepting files, ie not doing popen anymore --- perl-install/printer/main.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'perl-install/printer/main.pm') diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm index fa633e0cc..a39514b08 100644 --- a/perl-install/printer/main.pm +++ b/perl-install/printer/main.pm @@ -1843,12 +1843,8 @@ sub get_descr_from_ppdfile { sub ppd_devid_data { my ($ppd) = @_; $ppd = "$::prefix/usr/share/cups/model/$ppd"; - my @content; - if ($ppd =~ /\.gz$/i) { - @content = cat_("$::prefix/bin/zcat $ppd |") or return "", ""; - } else { - @content = cat_($ppd) or return "", ""; - } + my @content = eval { catMaybeCompressed($ppd) } or return "", ""; + my ($devidmake, $devidmodel); /^\*Manufacturer:\s*"(.*)"\s*$/ and $devidmake = $1 foreach @content; -- cgit v1.2.1