mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-23 12:51:10 +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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user