summaryrefslogtreecommitdiffstats
path: root/tools/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-03-07 11:39:48 +0000
committerOlivier Blin <oblin@mandriva.org>2006-03-07 11:39:48 +0000
commitff0439d9f929d7ab237856197475d363eb3884ca (patch)
tree0dbde91de0a7d24ac7a74d96a4baccd90f10f910 /tools/draklive
parent5c83b27e9a0bc17148e62ad3dbf630f8d0b57d29 (diff)
downloaddrakx-backup-do-not-use-ff0439d9f929d7ab237856197475d363eb3884ca.tar
drakx-backup-do-not-use-ff0439d9f929d7ab237856197475d363eb3884ca.tar.gz
drakx-backup-do-not-use-ff0439d9f929d7ab237856197475d363eb3884ca.tar.bz2
drakx-backup-do-not-use-ff0439d9f929d7ab237856197475d363eb3884ca.tar.xz
drakx-backup-do-not-use-ff0439d9f929d7ab237856197475d363eb3884ca.zip
die if additionnal system rpms can't be installed
Diffstat (limited to 'tools/draklive')
-rwxr-xr-xtools/draklive3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/draklive b/tools/draklive
index 251b5ed8f..c9b30998e 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -466,7 +466,8 @@ sub post_install_system {
mkdir_p(get_system_root($live) . $rpm_tmp_dir);
cp_f(@{$live->{system}{rpms}}, get_system_root($live) . $rpm_tmp_dir);
run_({ root => get_system_root($live) }, 'urpmi', '--auto',
- map { $rpm_tmp_dir . '/' . basename($_) } @{$live->{system}{rpms}});
+ map { $rpm_tmp_dir . '/' . basename($_) } @{$live->{system}{rpms}})
+ or die "unable to install additionnal system rpms";
rm_rf(get_system_root($live) . $rpm_tmp_dir);
}
my $erase = join(' ', @{$live->{system}{erase_rpms}});