From 1ef39d6ef854a108996585463304bcfbd2ae4541 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Mon, 1 Jul 2013 10:17:28 +0000 Subject: [PATCH] Fixing bug 3409, added the handle for postscripts, missing in last checkin. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16856 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kit.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index 5086044e7..215511d5d 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -972,7 +972,7 @@ sub read_kit_config } } - return([%kithash,%kitrepohash,%kitcomphash]); + return(\%kithash,\%kitrepohash,\%kitcomphash,$scripts); } @@ -1150,7 +1150,7 @@ sub addkit } # Read kit configuration file - my ($kithash,$kitrepohash,$kitcomphash) = read_kit_config(\@lines); + my ($kithash,$kitrepohash,$kitcomphash, $scripts) = read_kit_config(\@lines); # Check if this kit is allowed to add. if ( &check_kit_config(\%tabs,\$kithash,\$kitrepohash,\$kitcomphash) ) { @@ -1234,6 +1234,7 @@ sub addkit push@{ $rsp{data} }, "Copying kit scripts from $kitdir/other_files/ to $installdir/postscripts"; xCAT::MsgUtils->message( "I", \%rsp, $callback ); } + my @script = split ',', $scripts; foreach (@script) { next unless ($_);