aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/init.pm
diff options
context:
space:
mode:
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;