diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-04 16:12:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-04 16:12:52 +0000 |
commit | 65558fbd0a870c25efc26c3a1c3accf4e7f6a9a7 (patch) | |
tree | 7177d7f302e95e9438a096a27c2c6d03d447bc71 | |
parent | 52c7d1d2cf6913756b535d9f19f5157817871983 (diff) | |
download | rpmdrake-65558fbd0a870c25efc26c3a1c3accf4e7f6a9a7.tar rpmdrake-65558fbd0a870c25efc26c3a1c3accf4e7f6a9a7.tar.gz rpmdrake-65558fbd0a870c25efc26c3a1c3accf4e7f6a9a7.tar.bz2 rpmdrake-65558fbd0a870c25efc26c3a1c3accf4e7f6a9a7.tar.xz rpmdrake-65558fbd0a870c25efc26c3a1c3accf4e7f6a9a7.zip |
(check_if_first_run,init) do not display a splash text anymore
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | Rpmdrake/edit_urpm_sources.pm | 17 | ||||
-rw-r--r-- | Rpmdrake/init.pm | 25 | ||||
-rwxr-xr-x | edit-urpm-sources.pl | 2 |
4 files changed, 2 insertions, 43 deletions
@@ -1,5 +1,6 @@ - all o be able to handle --expert + o do not display a splash text anymore - edit-urpm-sources: o by default do not enable to alter the 'update' flag (unless --expert is given) diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm index c04eb2be..2e51c39a 100644 --- a/Rpmdrake/edit_urpm_sources.pm +++ b/Rpmdrake/edit_urpm_sources.pm @@ -37,7 +37,7 @@ use urpm::lock; use Exporter; our @ISA = qw(Exporter); -our @EXPORT = qw(check_if_first_run run); +our @EXPORT = qw(run); use mygtk2 qw(gtknew gtkset); use ugtk2 qw(:all); @@ -1131,21 +1131,6 @@ sub mainwindow() { } -sub check_if_first_run() { - if (!member(basename($0), @$already_splashed)) { - interactive_msg('rpmdrake', - N("%s - -Is it ok to continue?", - N("Welcome to the Software Media Manager! - -This tool will help you configure the packages media you wish to use on -your computer. They will then be available to install new software package -or to perform updates.")), yesno => 1) or myexit -1; - push @$already_splashed, basename($0); - } -} - sub run() { local $ugtk2::wm_icon = "title-install"; my $lock; diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm index 7f79851d..4982c7f1 100644 --- a/Rpmdrake/init.pm +++ b/Rpmdrake/init.pm @@ -157,31 +157,6 @@ but you may still browse the existing database."), yesno => 1, text => { no => N sub init() { URPM::bind_rpm_textdomain_codeset(); push @$already_splashed, $MODE if $rpmdrake_options{'no-splash'}; - if (!$> && !member($MODE, @$already_splashed)) { - interactive_msg(N("Welcome"), - N("%s - -Is it ok to continue?", - $MODE eq 'remove' ? - N("Welcome to the software removal tool! - -This tool will help you choose which software you want to remove from -your computer.") - : $MODE eq 'update' ? - N("Welcome to %s! - -This tool will help you choose the updates you want to install on your -computer.", $rpmdrake::myname_update) - : - ($rpmdrake::branded ? N("Welcome to the software installation tool!") - : N("Welcome to the software installation tool! - -Your Mandriva Linux system comes with several thousands of software -packages on CDROM or DVD. This tool will help you choose which software -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", diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl index 9abc0f05..5ccc255f 100755 --- a/edit-urpm-sources.pl +++ b/edit-urpm-sources.pl @@ -35,8 +35,6 @@ require_root_capability(); readconf(); -check_if_first_run(); - run(); myexit 0; |