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/; } }