fixing bug 94319: handle the case of some postscript contains parameters
This commit is contained in:
parent
3188ab14cc
commit
6439ab60ee
@ -2427,7 +2427,6 @@ sub rmkitcomp
|
||||
my %rsp;
|
||||
push@{ $rsp{data} }, "kitcomponent $kitcompdep basename does not exist";
|
||||
xCAT::MsgUtils->message( "E", \%rsp, $callback );
|
||||
return 1;
|
||||
}
|
||||
|
||||
my $kitcompdepname = get_highest_version('kitcompname', 'version', 'release', @entries);
|
||||
@ -2486,7 +2485,7 @@ sub rmkitcomp
|
||||
foreach my $kitcomponent (keys %kitcomps) {
|
||||
my @kitcompscripts = split( ',', $kitcomps{$kitcomponent}{postbootscripts} );
|
||||
foreach my $kitcompscript ( @kitcompscripts ) {
|
||||
if ( $osimagescript =~ /^$kitcompscript$/ ) {
|
||||
if ( $osimagescript =~ /^$kitcompscript/ ) {
|
||||
$match = 1;
|
||||
last;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user