diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-06 11:27:15 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-06 11:27:15 +0000 |
commit | aaa39ae1b853bd0b5ea1a7b4493fc9f05937ab96 (patch) | |
tree | aad28a048bd4ddf7f62a26113d77f6e34b3d7e4f /Rpmdrake/init.pm | |
parent | 773bfca1888100ecf09b274c1ce43b5572d5f9ff (diff) | |
download | rpmdrake-aaa39ae1b853bd0b5ea1a7b4493fc9f05937ab96.tar rpmdrake-aaa39ae1b853bd0b5ea1a7b4493fc9f05937ab96.tar.gz rpmdrake-aaa39ae1b853bd0b5ea1a7b4493fc9f05937ab96.tar.bz2 rpmdrake-aaa39ae1b853bd0b5ea1a7b4493fc9f05937ab96.tar.xz rpmdrake-aaa39ae1b853bd0b5ea1a7b4493fc9f05937ab96.zip |
on first run, offer to set up the packages sources (#28050)
Diffstat (limited to 'Rpmdrake/init.pm')
-rwxr-xr-x | Rpmdrake/init.pm | 14 |
1 files changed, 14 insertions, 0 deletions
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; |