2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Merge pull request #1486 from bybai/rmkitcomp

fix 1327 after pessl kitcomponents are removed from osimage, the INCL…
This commit is contained in:
Xiaopeng Wang 2016-07-06 15:41:17 +08:00 committed by GitHub
commit 31a7b8bf03

View File

@ -3205,7 +3205,7 @@ sub rmkitcomp
#check if the parameter is used by other kitcomponent
foreach my $otherline ( @otherlines ) {
chomp $otherline;
if ( $line =~ m!$otherline! ) {
if ( $otherline && $line =~ m!$otherline! ) {
$found = 1;
last;
}
@ -3216,7 +3216,7 @@ sub rmkitcomp
} else {
foreach my $content ( @contents ) {
chomp $content;
if ( $line =~ m!$content! ) {
if ( $content && $line =~ m!$content! ) {
$found = 1;
last;
}