summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet10
2 files changed, 13 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 62d69aa4..dc336782 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet
+ o display a success or an error message at end of installation
+
Version 2.51 - 6 October 2008
- mdkapplet
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;