summaryrefslogtreecommitdiffstats
path: root/mdkapplet-upgrade-helper
diff options
context:
space:
mode:
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;