From f0e333ceb7162395e770ffb25c66fc9a9d5739f7 Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Fri, 19 Sep 2003 10:33:58 +0000 Subject: fix typo in .pm --- drakwizard.pl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'drakwizard.pl') diff --git a/drakwizard.pl b/drakwizard.pl index 72740c0a..093a39bf 100755 --- a/drakwizard.pl +++ b/drakwizard.pl @@ -76,6 +76,9 @@ sub wizard { my $page = $o->{pages}{welcome}; $::Wizard_title = $o->{name}; $::Wizard_pix_up = $o->{defaultimage}; + if ($> && !$o->{allow_user} && !$::testing) { + require_root_capability(); + } check_rpm($o->{needed_rpm}) if $o->{needed_rpm}; if (defined $o->{init}) { my ($res, $msg) = &{$o->{init}}; @@ -84,11 +87,7 @@ sub wizard { exit if ! $::testing } } - print "root $> allow_user $o->{allow_user} testing $::testing\n"; - if ($> && !$o->{allow_user} && !$::testing) { - $in->ask_okcancel("error", N('You need to be root to run this wizard')); - exit; - } + my $next = 'welcome'; my @steps; while (1) { -- cgit v1.2.1