fix bug about last build id
authorHuaxu Wan <huaxu.wan@intel.com>
Thu, 1 Dec 2011 02:32:38 +0000 (10:32 +0800)
committerHuaxu Wan <huaxu.wan@intel.com>
Thu, 1 Dec 2011 02:32:38 +0000 (10:32 +0800)
data/packaging.sh

index dad4766..c04951f 100755 (executable)
@@ -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 ]