From d5cf03c4e98fb65060990b627903ad6b00c28871 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 17 Feb 2006 15:02:20 +0000 Subject: allow to erase rpms after install (aka the lazy rpmsrate patch) --- tools/draklive | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') 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; -- cgit v1.2.1