diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-20 00:05:19 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-20 00:05:19 +0000 |
commit | 1a3b1d4026a4654073affe572981f268068ead3f (patch) | |
tree | df1c3d168860db7d5fb613f8d448f04eb635e690 | |
parent | 9d2df7d6738db9dc59cb2edb5aaa94a6ee5991b5 (diff) | |
download | draklive-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)
-rwxr-xr-x | draklive-install | 8 |
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 { |