summaryrefslogtreecommitdiffstats
path: root/mdkapplet-upgrade-helper
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-21 13:43:17 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-21 13:43:17 +0000
commit9134a5556b2c85936bbb09a0443490397ff01bb6 (patch)
tree686e27acd923257b976bff8e7075118557fcfe34 /mdkapplet-upgrade-helper
parent9a8b427b9cd600dd2997a7dc87269994752866ac (diff)
downloadmgaonline-9134a5556b2c85936bbb09a0443490397ff01bb6.tar
mgaonline-9134a5556b2c85936bbb09a0443490397ff01bb6.tar.gz
mgaonline-9134a5556b2c85936bbb09a0443490397ff01bb6.tar.bz2
mgaonline-9134a5556b2c85936bbb09a0443490397ff01bb6.tar.xz
mgaonline-9134a5556b2c85936bbb09a0443490397ff01bb6.zip
(upgrade_failed) split it out of run_gurpmi()
Diffstat (limited to 'mdkapplet-upgrade-helper')
-rwxr-xr-xmdkapplet-upgrade-helper12
1 files changed, 8 insertions, 4 deletions
diff --git a/mdkapplet-upgrade-helper b/mdkapplet-upgrade-helper
index 144416eb..2ec28060 100755
--- a/mdkapplet-upgrade-helper
+++ b/mdkapplet-upgrade-helper
@@ -99,10 +99,7 @@ sub run_gurpmi() {
if (!$refork_gurpmi) {
if (!$ok) {
- ugtk2::ask_warn(N("Error"),
- N("Installation failed"),
- N("Installation logs can be found in '%s'", $log_file)
- );
+ upgrade_failed();
} else {
upgrade_distro_congratulations();
}
@@ -110,6 +107,13 @@ sub run_gurpmi() {
}
}
+sub upgrade_failed() {
+ ugtk2::ask_warn(N("Error"),
+ N("Installation failed"),
+ N("Installation logs can be found in '%s'", $log_file)
+ );
+ }
+
sub upgrade_distro_congratulations() {
local $mygtk2::left_padding = 0;
my $width = 500;