From f0dc19b0456703acf21d2c989d24faabf27b8bb9 Mon Sep 17 00:00:00 2001 From: litingt Date: Fri, 27 Jun 2014 00:34:20 -0700 Subject: [PATCH] for commit log file --- xCAT-server/share/xcat/tools/xCATreg | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xCAT-server/share/xcat/tools/xCATreg b/xCAT-server/share/xcat/tools/xCATreg index 5d0f384db..0973ea7eb 100755 --- a/xCAT-server/share/xcat/tools/xCATreg +++ b/xCAT-server/share/xcat/tools/xCATreg @@ -1612,6 +1612,14 @@ for my $m (keys %totalresult) { $fatal{$m} = $2; } } + +if (-f "/tmp/commitlog1" and -z _) +{ + $commitinfo="No code updates\n"; +}else{ + $commitinfo=`cat /tmp/commitlog1`; +} + # phase result send_msg(2, "Autotest has run sucessfully, begin to send mail"); my $mailreport;