Fixing bug 3610: not add prerequisite to full kit if there is no 'prerequisite' in kit.conf of partial kit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16579 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f8bbdf8a97
commit
f7f871278c
@ -3077,13 +3077,14 @@ sub kit_addpkgs
|
||||
my @lines = <$CKF>;
|
||||
close $CKF;
|
||||
|
||||
$::PREREQUISITE = 1;
|
||||
foreach my $l (@lines) {
|
||||
# skip blank and comment lines
|
||||
if ( $l =~ /^\s*$/ || $l =~ /^\s*#/ ) {
|
||||
next;
|
||||
}
|
||||
if ($l =~ /prerequisite/ ) {
|
||||
$::PREREQUISITE = 1;
|
||||
$::PREREQUISITE = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user