aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/init.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-06 11:27:15 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-06 11:27:15 +0000
commitaaa39ae1b853bd0b5ea1a7b4493fc9f05937ab96 (patch)
treeaad28a048bd4ddf7f62a26113d77f6e34b3d7e4f /Rpmdrake/init.pm
parent773bfca1888100ecf09b274c1ce43b5572d5f9ff (diff)
downloadrpmdrake-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-xRpmdrake/init.pm14
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;