summaryrefslogtreecommitdiffstats
path: root/drakwizard.pl
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-09-19 10:33:58 +0000
committerFlorent Villard <warly@mandriva.com>2003-09-19 10:33:58 +0000
commitf0e333ceb7162395e770ffb25c66fc9a9d5739f7 (patch)
tree5b60dbaeb534a5bfe9c96360d3fbb05732ff5c83 /drakwizard.pl
parent63ea5f27cffdec60d3f59d14d762df580440ca06 (diff)
downloaddrakwizard-f0e333ceb7162395e770ffb25c66fc9a9d5739f7.tar
drakwizard-f0e333ceb7162395e770ffb25c66fc9a9d5739f7.tar.gz
drakwizard-f0e333ceb7162395e770ffb25c66fc9a9d5739f7.tar.bz2
drakwizard-f0e333ceb7162395e770ffb25c66fc9a9d5739f7.tar.xz
drakwizard-f0e333ceb7162395e770ffb25c66fc9a9d5739f7.zip
fix typo in .pm
Diffstat (limited to 'drakwizard.pl')
-rwxr-xr-xdrakwizard.pl9
1 files changed, 4 insertions, 5 deletions
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) {