diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-07-27 06:35:00 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-07-27 06:35:00 +0000 |
commit | 84a16a711446b3f1b374aa6722f5836a9007d29d (patch) | |
tree | f4d41bc028a76527ff724de0984712b1453cd0ae | |
parent | 83a430d66206819377b4fb07b0414893c0d7684e (diff) | |
download | drakwizard-84a16a711446b3f1b374aa6722f5836a9007d29d.tar drakwizard-84a16a711446b3f1b374aa6722f5836a9007d29d.tar.gz drakwizard-84a16a711446b3f1b374aa6722f5836a9007d29d.tar.bz2 drakwizard-84a16a711446b3f1b374aa6722f5836a9007d29d.tar.xz drakwizard-84a16a711446b3f1b374aa6722f5836a9007d29d.zip |
enable to use new wizards layer rather than old through
use_new_data_structure flag. (smooth migration was already helped
through addition of the "complete" callback)
-rwxr-xr-x | drakwizard.pl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drakwizard.pl b/drakwizard.pl index c6895365..3edab765 100755 --- a/drakwizard.pl +++ b/drakwizard.pl @@ -81,8 +81,15 @@ if ($err) { $in->ask_okcancel(N("Error"), translate($err)); $in->exit; } -wizard($wiz->{o}); +if ($wiz->{o}{use_new_data_structure}) { + require wizards; + my $wizard = wizards->new; + $::in = $in; + $wizard->safe_process($wiz->{o}, $in); +} else { + wizard($wiz->{o}); +} $in->exit; sub wizard { |