From c3608d2612112b4099b08891541289fd513e285c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 20 May 2003 14:03:27 +0000 Subject: prevent set_usermode() vs set_cups_autoconf() conflict --- perl-install/printer/main.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm index c0e95953c..d1da95b73 100644 --- a/perl-install/printer/main.pm +++ b/perl-install/printer/main.pm @@ -614,7 +614,8 @@ sub get_cups_autoconf { $sysconfig{CUPS_CONFIG} ne 'manual' ? 1 : 0 } sub set_usermode { my ($usermode) = @_; - setVarsInSh("$::prefix/etc/sysconfig/printing", { "USER_MODE" => $usermode ? "expert" : "recommended" }); + $sysconfig{USER_MODE} = $usermode ? "expert" : "recommended"; + setVarsInSh("$::prefix/etc/sysconfig/printing", \%sysconfig); return 1; } -- cgit v1.2.1