summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-06 17:26:08 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-06 17:26:08 +0000
commit94972dd627f9aed7a76e9722f58361dd803c4300 (patch)
treec239f354d121237305583c32b1ba0b4834619e34 /mdkapplet
parent8114a4f175529e3e3eb6b0c20785735532ca8c48 (diff)
downloadmgaonline-94972dd627f9aed7a76e9722f58361dd803c4300.tar
mgaonline-94972dd627f9aed7a76e9722f58361dd803c4300.tar.gz
mgaonline-94972dd627f9aed7a76e9722f58361dd803c4300.tar.bz2
mgaonline-94972dd627f9aed7a76e9722f58361dd803c4300.tar.xz
mgaonline-94972dd627f9aed7a76e9722f58361dd803c4300.zip
(harvester) display a success or an error message at end of installation
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet10
1 files changed, 10 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index 8e40725c..780e3cf8 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -330,6 +330,16 @@ sub harvester {
$mdvupdate_returned = 1;
}
undef $refork_gurpmi;
+ if ($status) {
+ ugtk2::ask_warn(N("Error"),
+ N("Installation failed"),
+ );
+ } else {
+ ugtk2::ask_warn(N("Congratulations"),
+ N("Upgrade to Mandriva %s release was successfull.", $new_distro->{version}),
+ N("You should restart your system.")
+ );
+ }
} elsif ($checker_pid && $checker_pid == $childpid) {
undef $checker_pid;
my ($state) = grep { $_->{code} eq $status } values %comm_codes;