From: Huaxu Wan Date: Thu, 1 Dec 2011 02:32:38 +0000 (+0800) Subject: fix bug about last build id X-Git-Tag: v0.1~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=755fc81af3302131c507c9b44638f3dcc4880d2c;p=tools%2Fgbs.git fix bug about last build id --- 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 ]