aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-01 13:26:40 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-01 13:26:40 +0000
commit5b0e630b664d24b45dd1e35c645315b91d7bdfef (patch)
tree6f68a04602f47302d8fbedb3729e00a01ee41334 /Rpmdrake
parentf3cdba838feab539b9a9ea8a3b2af39d1034c3ac (diff)
downloadrpmdrake-5b0e630b664d24b45dd1e35c645315b91d7bdfef.tar
rpmdrake-5b0e630b664d24b45dd1e35c645315b91d7bdfef.tar.gz
rpmdrake-5b0e630b664d24b45dd1e35c645315b91d7bdfef.tar.bz2
rpmdrake-5b0e630b664d24b45dd1e35c645315b91d7bdfef.tar.xz
rpmdrake-5b0e630b664d24b45dd1e35c645315b91d7bdfef.zip
(_want_base_distro) split it out of easy_add_callback() (needed for next commits)
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/edit_urpm_sources.pm18
1 files changed, 11 insertions, 7 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 2e51c39a..be741e38 100644
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -109,12 +109,8 @@ sub remove_from_list {
}
-sub easy_add_callback() {
- # when called on early init by rpmdrake
- $urpm ||= fast_open_urpmi_db();
-
- #- cooker and community don't have update sources
- my $want_base_distro = distro_type(0) eq 'updates' ? interactive_msg(
+sub _want_base_distro() {
+ distro_type(0) eq 'updates' ? interactive_msg(
N("Choose media type"),
N("In order to keep your system secure and stable, you must at a minimum set up
sources for official security and stability updates. You can also choose to set
@@ -124,7 +120,15 @@ discs. Please choose whether to configure update sources only, or the full set
of sources."),
transient => $::main_window,
yesno => 1, text => { yes => N("Full set of sources"), no => N("Update sources only") },
- ) : 1;
+ ) : 1
+}
+
+sub easy_add_callback() {
+ # when called on early init by rpmdrake
+ $urpm ||= fast_open_urpmi_db();
+
+ #- cooker and community don't have update sources
+ my $want_base_distro = _want_base_distro();
my $distro = $rpmdrake::mandrake_release;
my ($mirror) = choose_mirror($urpm, message =>
N("This will attempt to install all official sources corresponding to your