From 40319ab858e0f935bb4a281d57924003bde29782 Mon Sep 17 00:00:00 2001 From: ligc Date: Wed, 2 Apr 2014 05:30:14 -0400 Subject: [PATCH] fix a problem in perl-xCAT.spec for git commit id --- perl-xCAT/modifyUtils | 2 +- perl-xCAT/perl-xCAT.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/modifyUtils b/perl-xCAT/modifyUtils index becac2979..bbad27bdb 100755 --- a/perl-xCAT/modifyUtils +++ b/perl-xCAT/modifyUtils @@ -8,7 +8,7 @@ if [ -z "$2" ] fi VER=$1 -GITREF="git $2, " +GITREF="git commit $2, " BUILDDATE=`date` #echo ". '(built $BUILDDATE)'" diff --git a/perl-xCAT/perl-xCAT.spec b/perl-xCAT/perl-xCAT.spec index eb11a4195..0cef475ee 100644 --- a/perl-xCAT/perl-xCAT.spec +++ b/perl-xCAT/perl-xCAT.spec @@ -23,7 +23,7 @@ Provides: perl-xCAT = %{epoch}:%{version} Provides perl xCAT libraries for core functionality. Required for all xCAT installations. Includes xCAT::Table, xCAT::NodeRange, among others. -%define gitinfo %(git log -n 1 | head -n 1) +%define gitinfo %(git log -n 1 | head -n 1 | cut -f 2 -d ' ') %define zvm %(if [ "$zvm" = "1" ];then echo 1; else echo 0; fi) %define fsm %(if [ "$fsm" = "1" ];then echo 1; else echo 0; fi)