diff options
author | Till Kamppeter <tkamppeter@mandriva.com> | 2003-01-30 18:40:46 +0000 |
---|---|---|
committer | Till Kamppeter <tkamppeter@mandriva.com> | 2003-01-30 18:40:46 +0000 |
commit | f7b7cf7d5044d155b5b02c026d4d682423f40655 (patch) | |
tree | 8c966565f186361a7d16db5ed23113cd2312f3d5 /perl-install/printer/main.pm | |
parent | d9f2fa4207473273c22210a995b3b725a8148e98 (diff) | |
download | drakx-f7b7cf7d5044d155b5b02c026d4d682423f40655.tar drakx-f7b7cf7d5044d155b5b02c026d4d682423f40655.tar.gz drakx-f7b7cf7d5044d155b5b02c026d4d682423f40655.tar.bz2 drakx-f7b7cf7d5044d155b5b02c026d4d682423f40655.tar.xz drakx-f7b7cf7d5044d155b5b02c026d4d682423f40655.zip |
- Conservation of option settings also for queues with PostScript PPD files
or when switching between PostScript PPD file and Foomatic.
- Fixed tree structure of main window in expert mode.
- Several smaller bug fixes.
Diffstat (limited to 'perl-install/printer/main.pm')
-rw-r--r-- | perl-install/printer/main.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm index b92aff0f1..529224fe2 100644 --- a/perl-install/printer/main.pm +++ b/perl-install/printer/main.pm @@ -278,7 +278,7 @@ sub read_configured_queues($) { if (!$printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{ppd}) { $printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{ppd} = '1'; } - $printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{driver} = 'CUPS/PPD'; + $printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{driver} = 'PPD'; $printer->{OLD_QUEUE} = ""; } $printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{make} ||= ""; @@ -305,7 +305,7 @@ sub read_configured_queues($) { sub make_menuentry { my ($printer, $queue) = @_; - my $spooler = $shortspooler_inv{$printer->{SPOOLER}}{short_name}; + my $spooler = $spoolers{$printer->{SPOOLER}}{short_name}; my $connect = $printer->{configured}{$queue}{queuedata}{connect}; my $localremote; if ($connect =~ m!^(file|parallel|usb|serial):! || @@ -630,7 +630,7 @@ sub set_usermode { if (!(-f $file)) { @file_content = (); } else { - open F, "< $file" or die "Cannot open $file!"; + open F, "< $file" or die "Cannot open $file for reading!"; @file_content = <F>; close F; } @@ -646,7 +646,7 @@ sub set_usermode { } # Write back modified file - open F, "> $file" or die "Cannot open $file!"; + open F, "> $file" or die "Cannot open $file for writing!"; print F @file_content; close F; |