From f2f03bc71822d39a12d485abbcc80478222e7cf5 Mon Sep 17 00:00:00 2001 From: baiyuan Date: Fri, 14 Nov 2014 03:56:16 -0500 Subject: [PATCH] defect 4394 buildkit preuninstall did not work --- xCAT-buildkit/bin/buildkit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index 08d3e51e5..094c5e4b2 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -2001,7 +2001,7 @@ sub build_kitcomp $::VALID_PRER_COMPONENT = 0; if ( !$::PREREQUISITE ) { - if ( $comp->{ospkgdeps} || $comp->{preinstall} || $comp->{preupgrade} || $comp->{preuninstall} ) { + if ( $comp->{ospkgdeps} || $comp->{preinstall} || $comp->{preupgrade} ) { if ( &gen_kitcomp_spec($comp,\%repo, 'PREREQUISITE') ) { return 1; } # run the rpmbuild command @@ -2376,7 +2376,7 @@ sub gen_kitcomp_spec s/<<>>/$postscript/; s/<<>>//; s/<<>>/$postupscript/; - s/<<>>//; + s/<<>>/$preunscript/; s/<<>>/$postunscript/; } }