Fixing a problem that: for partial kit, buildkit will fail if there is no any product rpms at all and so no deploy dir created, and so kit_config file cannot be created.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14742 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
a685cb98af
commit
3991bcc3e1
@ -1854,6 +1854,11 @@ sub create_kitconf
|
||||
}
|
||||
}
|
||||
|
||||
if ( (! -d $::deploy_dir) && (! mkpath($::deploy_dir)) ) {
|
||||
print "Error creating build directory $::deploy_dir.\n";
|
||||
return;
|
||||
}
|
||||
|
||||
my $full_kit_conf = $::deploy_dir."/".$::kit_conf;
|
||||
my $NCF;
|
||||
unless ( open( $NCF, ">$full_kit_conf" ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user