summaryrefslogtreecommitdiffstats
path: root/draklive-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-20 00:05:19 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-20 00:05:19 +0000
commit1a3b1d4026a4654073affe572981f268068ead3f (patch)
treedf1c3d168860db7d5fb613f8d448f04eb635e690 /draklive-install
parent9d2df7d6738db9dc59cb2edb5aaa94a6ee5991b5 (diff)
downloaddraklive-install-1a3b1d4026a4654073affe572981f268068ead3f.tar
draklive-install-1a3b1d4026a4654073affe572981f268068ead3f.tar.gz
draklive-install-1a3b1d4026a4654073affe572981f268068ead3f.tar.bz2
draklive-install-1a3b1d4026a4654073affe572981f268068ead3f.tar.xz
draklive-install-1a3b1d4026a4654073affe572981f268068ead3f.zip
display error message and exit if install (files copy) failed (#22764)
Diffstat (limited to 'draklive-install')
-rwxr-xr-xdraklive-install8
1 files changed, 7 insertions, 1 deletions
diff --git a/draklive-install b/draklive-install
index a97e4bf..85fd437 100755
--- a/draklive-install
+++ b/draklive-install
@@ -150,7 +150,7 @@ sub copy_root {
my ($in, $copy_source) = @_;
my $total = get_total_size($in, $copy_source);
- my ($_wait, $update_progress) = copying_message_with_progress_bar($in, N("Copying in progress"));
+ my ($wait, $update_progress) = copying_message_with_progress_bar($in, N("Copying in progress"));
open(my $OUTPUT, '-|', build_copy_command($copy_source, $::prefix));
{
local $_;
@@ -164,6 +164,12 @@ sub copy_root {
}
}
}
+ if (!close($OUTPUT)) {
+ undef $wait;
+ undef $update_progress;
+ $in->ask_warn(N("Error"), N("Unable to copy files to new root"));
+ $in->exit(1);
+ }
}
sub complete_install {