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:
wanghuaz 2013-01-04 08:05:58 +00:00
parent a685cb98af
commit 3991bcc3e1

View File

@ -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" ) ) {