Bug#319109: cupsys-driver-gutenprint: syntax error on local ppd file
Andrew Pimlott <andrew@pimlott.net> writes:
> On Wed, Jul 20, 2005 at 08:49:14PM +0100, Roger Leigh wrote:
>> I'll add the patch back in. Would you be willing to test the
>> packages?
>
> thanks and sure
If you patch /usr/sbin/cups-genppdupdate.5.0 with the following patch,
and then try running it (as root), does it then run without error?
Thanks,
Roger
--- /usr/sbin/cups-genppdupdate.5.0 2005-07-18 19:17:52.000000000 +0100
+++ cups-genppdupdate.5.0 2005-07-20 21:10:50.780033880 +0100
@@ -93,7 +93,7 @@
my @ppdglob = glob("$ppd_dir/*.{ppd,PPD}");
my $ppdlist = join ' ', @ppdglob;
if (@ppdglob) {
- open PPDFILES, "egrep -i -l \"Gutenprint|Gimp-Print\" $ppdlist|" or die "can't grep $ppd_dir/*: $!";
+ open PPDFILES, '-|', 'egrep', '-i', '-l', 'Gutenprint|Gimp-Print', @ppdglob or die "can't grep $ppd_dir/*: $!";
while (<PPDFILES>) {
chomp;
push @ppd_files, $_;
--
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
Reply to: