From 755fc81af3302131c507c9b44638f3dcc4880d2c Mon Sep 17 00:00:00 2001 From: Huaxu Wan Date: Thu, 1 Dec 2011 10:32:38 +0800 Subject: [PATCH] fix bug about last build id --- data/packaging.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/packaging.sh b/data/packaging.sh index dad4766..c04951f 100755 --- a/data/packaging.sh +++ b/data/packaging.sh @@ -221,7 +221,7 @@ get_srctar_md5sum() last_prj=`echo $result_json|python -mjson.tool |grep "project" -A1|tail -1|cut -d'"' -f4` last_user=`echo $result_json|python -mjson.tool |grep "userName" |cut -d'"' -f4` if [ "$last_prj" == "$project" -o "$last_user" != "$user" ]; then - build_id=$ret_id + last_id=$ret_id echo '' break fi @@ -232,6 +232,7 @@ get_srctar_md5sum() fi done fi + build_id=$last_id echo 'Processing your request' # Waiting until the job finished while [ true ] -- 2.7.4