From 4ed3f9a05762f0c7966ddb4ac5a36aa088f9dd75 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 31 Jul 2002 20:08:19 +0000 Subject: use configure_chooser when there is an existing configuration --- perl-install/standalone/XFdrake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'perl-install/standalone/XFdrake') diff --git a/perl-install/standalone/XFdrake b/perl-install/standalone/XFdrake index eca0f6cad..5153b54b9 100755 --- a/perl-install/standalone/XFdrake +++ b/perl-install/standalone/XFdrake @@ -28,7 +28,6 @@ use interactive; use any; use c; - $::isEmbedded = ($::XID, $::CCPID) = "@ARGV" =~ /--embedded (\w+) (\w+)/; local $_ = join '', @ARGV; @@ -58,7 +57,13 @@ begin: my $rc = do { if ($configure_this eq 'everything') { check_XFree($in); - Xconfig::main::configure_everything($in, Xconfig::default::configure(), $in->do_pkgs, $auto, { allowNVIDIA_rpms => allowNVIDIA_rpms() }); + my $raw_X = Xconfig::xfree->read; + + if (@{$raw_X->{xfree3}} || @{$raw_X->{xfree4}}) { + Xconfig::main::configure_chooser($in, $raw_X, $in->do_pkgs, { allowNVIDIA_rpms => allowNVIDIA_rpms() }); + } else { + Xconfig::main::configure_everything($in, Xconfig::default::configure(), $in->do_pkgs, $auto, { allowNVIDIA_rpms => allowNVIDIA_rpms() }); + } } elsif ($configure_this eq 'auto_install') { Xconfig::main::configure_everything_auto_install(Xconfig::default::configure(), $in->do_pkgs, {}, { allowNVIDIA_rpms => allowNVIDIA_rpms() }); } elsif ($configure_this eq 'monitor') { -- cgit v1.2.1