From 05cdbae0aa2857780e43aabc9f4c7d5ad47fb3ab Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Thu, 6 Sep 2001 14:27:44 +0000 Subject: update printer data for g_auto_install. --- perl-install/install_any.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 84c6214b7..8795046c0 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -651,8 +651,9 @@ sub g_auto_install { $o->{printer}{configured} = {}; foreach my $queue (keys %{$::o->{printer}{configured}}) { my $val = $::o->{printer}{configured}{$queue}; - $val->{$_} and $o->{printer}{configured}{$queue}{$_} = $val->{$_} foreach qw(OPTIONS); - add2hash($o->{printer}{configured}{$queue}{queuedata} = {}, $val->{queuedata}); + exists $val->{$_} and $o->{printer}{configured}{$queue}{$_} = $val->{$_} foreach qw(OPTIONS); + exists $val->{queuedata}{$_} and $o->{printer}{configured}{$queue}{queuedata}{$_} = $val->{queuedata}{$_} + foreach keys %{$val->{queuedata} || {}}; } } -- cgit v1.2.1