diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-02-17 15:02:20 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-02-17 15:02:20 +0000 |
commit | d5cf03c4e98fb65060990b627903ad6b00c28871 (patch) | |
tree | 16b8b2c439794bd3da727ea4a8b630f767930bac /tools | |
parent | 91a1e8abc2573f67e7a5d52a48a090d9073c423d (diff) | |
download | drakx-d5cf03c4e98fb65060990b627903ad6b00c28871.tar drakx-d5cf03c4e98fb65060990b627903ad6b00c28871.tar.gz drakx-d5cf03c4e98fb65060990b627903ad6b00c28871.tar.bz2 drakx-d5cf03c4e98fb65060990b627903ad6b00c28871.tar.xz drakx-d5cf03c4e98fb65060990b627903ad6b00c28871.zip |
allow to erase rpms after install (aka the lazy rpmsrate patch)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/draklive | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/draklive b/tools/draklive index 6482f2254..c88901c65 100755 --- a/tools/draklive +++ b/tools/draklive @@ -443,6 +443,8 @@ sub post_install_system { map { $rpm_tmp_dir . '/' . basename($_) } @{$live->{system}{rpms}}); rm_rf($live->{system}{root} . $rpm_tmp_dir); } + my $erase = join(' ', @{$live->{system}{erase_rpms}}); + run_('chroot', $live->{system}{root}, 'sh', '-c', "rpm -qa $erase | xargs rpm -e ") if $erase; my @patches = map { abs_path($_) } @{$live->{system}{patches}}; each_index { !defined $_ and die "unable to find file " . $live->{system}{patches}[$::i] } @patches; |