From 3991bcc3e10e0a8667ba85913130a787d19dad46 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Fri, 4 Jan 2013 08:05:58 +0000 Subject: [PATCH] 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 --- xCAT-buildkit/bin/buildkit | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index f55ec5ddb..fbe93bf41 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -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" ) ) {