summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-09-06 14:27:44 +0000
committerFrancois Pons <fpons@mandriva.com>2001-09-06 14:27:44 +0000
commit05cdbae0aa2857780e43aabc9f4c7d5ad47fb3ab (patch)
treefa9fdbdd136ee145a1b716ba7b3b32d4721a768f
parentd338a62fc8c95e6212fc84dbded1393bcd9142ab (diff)
downloaddrakx-05cdbae0aa2857780e43aabc9f4c7d5ad47fb3ab.tar
drakx-05cdbae0aa2857780e43aabc9f4c7d5ad47fb3ab.tar.gz
drakx-05cdbae0aa2857780e43aabc9f4c7d5ad47fb3ab.tar.bz2
drakx-05cdbae0aa2857780e43aabc9f4c7d5ad47fb3ab.tar.xz
drakx-05cdbae0aa2857780e43aabc9f4c7d5ad47fb3ab.zip
update printer data for g_auto_install.
-rw-r--r--perl-install/install_any.pm5
1 files 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} || {}};
}
}