summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-02-17 15:02:20 +0000
committerOlivier Blin <oblin@mandriva.org>2006-02-17 15:02:20 +0000
commitd5cf03c4e98fb65060990b627903ad6b00c28871 (patch)
tree16b8b2c439794bd3da727ea4a8b630f767930bac
parent91a1e8abc2573f67e7a5d52a48a090d9073c423d (diff)
downloaddrakx-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)
-rwxr-xr-xtools/draklive2
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;