From aaa39ae1b853bd0b5ea1a7b4493fc9f05937ab96 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 6 Mar 2007 11:27:15 +0000 Subject: on first run, offer to set up the packages sources (#28050) --- Rpmdrake/init.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Rpmdrake') diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm index 8f0476b2..dee521cd 100755 --- a/Rpmdrake/init.pm +++ b/Rpmdrake/init.pm @@ -145,6 +145,20 @@ you want to install on your computer."))) , yesno => 1) or myexit(-1); push @$already_splashed, $MODE; } + if (!$> && !$offered_to_add_sources->[0]) { + if (interactive_msg(N("Welcome"), + join("\n\n", + N("The software installation tool can set up media sources."), + N("Do you want to add media sources now?"), + ), + yesno => 1, + ) + ) { + require Rpmdrake::edit_urpm_sources; + Rpmdrake::edit_urpm_sources::easy_add_callback(); + } + $offered_to_add_sources->[0] = 1; + } } 1; -- cgit v1.2.1