summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2009-04-03 15:28:31 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2009-04-03 15:28:31 +0000
commitd216165acc8f83d2c96f877a37cb1b550c097284 (patch)
treec49beb5887eaba924104f0483e4c601ef1405c38
parentb6f36d8f3aa4ce59b3bd5d3587cc51fa590c1e30 (diff)
downloaddraksnapshot-d216165acc8f83d2c96f877a37cb1b550c097284.tar
draksnapshot-d216165acc8f83d2c96f877a37cb1b550c097284.tar.gz
draksnapshot-d216165acc8f83d2c96f877a37cb1b550c097284.tar.bz2
draksnapshot-d216165acc8f83d2c96f877a37cb1b550c097284.tar.xz
draksnapshot-d216165acc8f83d2c96f877a37cb1b550c097284.zip
(configure) display a success message before quitting
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@255443 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-rw-r--r--NEWS1
-rw-r--r--lib/MDV/Snapshot/Restore.pm7
2 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9bc4d26..ad74fe1 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- draksnapshot-restore
o do not try to mount '/'
+ o display a success message before quitting
Version 0.19.2 - 30 March 2009, Thierry Vignaud
diff --git a/lib/MDV/Snapshot/Restore.pm b/lib/MDV/Snapshot/Restore.pm
index 5f616c3..28f9304 100644
--- a/lib/MDV/Snapshot/Restore.pm
+++ b/lib/MDV/Snapshot/Restore.pm
@@ -134,6 +134,13 @@ sub configure {
# FIXME: should we use --delete?
run_program::run('rsync', '-vrlpt', $dir, "$::prefix$_") if !$::testing;
}
+ undef $_wait;
+ $in->ask_from_no_check(
+ {
+ title => N("Congratulations"),
+ messages => N("Congratulations, restoration is complete."),
+ ok => $::isStandalone || $::local_install ? N("Quit") : N("Reboot"),
+ }, []);
}