diff --git a/lpadmin/CHANGELOG b/lpadmin/CHANGELOG index ddc789e24..7e00b4656 100644 --- a/lpadmin/CHANGELOG +++ b/lpadmin/CHANGELOG @@ -15,3 +15,5 @@ Fixed a bug that stopped SMB printer usernames and passwords from being displaye Re-designed the print jobs page to allow several to be cancelled at once, using the standard Webmin table with checkboxes. ---- Changes since 1.440 ---- Show the date and time a job was submitted on systems using CUPS. +---- Changes since 1.510 ---- +Changed the default PPD driver directory on Debian to include /usr/share/ppd as well. diff --git a/lpadmin/config-debian-linux-4.0-* b/lpadmin/config-debian-linux-4.0-* index f9dcea6a3..f14d13703 100644 --- a/lpadmin/config-debian-linux-4.0-* +++ b/lpadmin/config-debian-linux-4.0-* @@ -3,7 +3,7 @@ gs_lib= iface_arg= gs_path=gs spool_dir=/var/spool/cups -model_path=/usr/share/foomatic/db +model_path=/usr/share/foomatic/db /usr/share/ppd gs_fontpath= smbclient_path=smbclient print_style=cups diff --git a/lpadmin/cups-driver.pl b/lpadmin/cups-driver.pl index 783e76ecb..0825cdd44 100755 --- a/lpadmin/cups-driver.pl +++ b/lpadmin/cups-driver.pl @@ -135,15 +135,17 @@ local (@ppds, $d, $f, $ppd, %cache, $outofdate, @files, %donefile); local $findver = &backquote_command("find --version 2>&1", 1); local $flag = $findver =~ /GNU\s+find\s+version\s+([0-9\.]+)/i && $1 >= 4.2 ? "-L" : ""; -&open_execute_command(FIND, "find $flag ".quotemeta($config{'model_path'}). - " -type f -print", 1, 1); -while() { - chop; - /([^\/]+)$/; - next if ($donefile{$1}++); - push(@files, $_); +foreach my $mp (split(/\s+/, $config{'model_path'})) { + &open_execute_command(FIND, "find $flag ".quotemeta($mp). + " -type f -print", 1, 1); + while() { + chop; + /([^\/]+)$/; + next if ($donefile{$1}++); + push(@files, $_); + } + close(FIND); } -close(FIND); &read_file("$module_config_directory/ppd-cache", \%cache); foreach $f (@files) { if (!defined($cache{$f})) {