BUGFIXED: source functions.sh in same-build-result.sh 91/109291/1 accepted/tizen_4.0_base accepted/tizen_5.0_base accepted/tizen_5.5_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_5.5_base_wearable_hotfix accepted/tizen_6.0_base accepted/tizen_6.0_base_tool accepted/tizen_6.0_base_tool_hotfix accepted/tizen_6.5_base accepted/tizen_6.5_base_tool accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_7.0_base_tool accepted/tizen_7.0_base_tool_hotfix accepted/tizen_8.0_base accepted/tizen_base_tool tizen_4.0_base tizen_4.0_tv tizen_5.0_base tizen_5.5_base tizen_5.5_base_mobile_hotfix tizen_5.5_base_wearable_hotfix tizen_5.5_tv tizen_6.0_base tizen_6.0_base_hotfix tizen_6.5_base tizen_7.0_base tizen_7.0_base_hotfix tizen_8.0_base accepted/tizen/4.0/base/20170811.092756 accepted/tizen/4.0/base/20170828.221125 accepted/tizen/5.0/base/20181101.090527 accepted/tizen/5.5/base/20191030.082623 accepted/tizen/5.5/base/mobile/hotfix/20201023.084638 accepted/tizen/5.5/base/wearable/hotfix/20201023.081019 accepted/tizen/6.0/base/20201029.110252 accepted/tizen/6.0/base/20230713.142803 accepted/tizen/6.0/base/tool/20201029.111846 accepted/tizen/6.0/base/tool/hotfix/20201030.124654 accepted/tizen/6.0/base/tool/hotfix/20201102.085834 accepted/tizen/6.5/base/20230714.002433 accepted/tizen/6.5/base/tool/20211027.112404 accepted/tizen/7.0/base/20230714.002843 accepted/tizen/7.0/base/hotfix/20230714.003658 accepted/tizen/7.0/base/tool/20221028.112953 accepted/tizen/7.0/base/tool/hotfix/20221115.084745 accepted/tizen/8.0/base/20231005.044618 accepted/tizen/base/20170120.121738 accepted/tizen/base/20230714.003248 accepted/tizen/base/20240510.024458 submit/tizen_4.0_base/20170811.071500 submit/tizen_4.0_base/20170828.000000 submit/tizen_4.0_base/20170828.000001 submit/tizen_5.0_base/20181101.000001 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171501 submit/tizen_5.5_base_wearable_hotfix/20201023.155601 submit/tizen_6.0_base/20201029.184801 submit/tizen_6.0_base_hotfix/20201030.192501 submit/tizen_6.0_base_hotfix/20201102.162701 submit/tizen_6.5_base/20211026.180901 submit/tizen_6.5_base/20211027.183101 submit/tizen_6.5_base/20211027.200501 submit/tizen_7.0_base/20221028.200901 submit/tizen_7.0_base_hotfix/20221115.161501 submit/tizen_base/20170110.011625 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorJunghyun Kim <jh0822.kim@samsung.com>
Mon, 9 Jan 2017 22:47:07 +0000 (07:47 +0900)
committerJunghyun Kim <jh0822.kim@samsung.com>
Mon, 9 Jan 2017 22:48:29 +0000 (07:48 +0900)
This is required to check whether the project is
prerelease/trbs project or not.

Change-Id: Ib90c9598d72d6dc713d0a49e6d6f1f26d501a92f
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
packaging/same-build-result.sh

index 2e879e4..701ccf2 100644 (file)
@@ -13,6 +13,7 @@
 
 CMPSCRIPT=${0%/*}/pkg-diff.sh
 SCMPSCRIPT=${0%/*}/srpm-check.sh
+FUNCTIONS=${0%/*}/functions.sh
 
 check_all=1
 OLDDIR="$1"
@@ -30,6 +31,8 @@ if [ -z "$NEWDIRS" ]; then
   exit 1
 fi
 
+source $FUNCTIONS
+
 first_rpm=$(find $NEWDIRS -name *.rpm | head -1)
 dist=$(rpm -qp --nodigest --nosignature --qf "%{DISTRIBUTION}" $first_rpm | sed -r 's/(.*)\/.*/\1/')
 prerelease=0
@@ -41,7 +44,7 @@ if ! is_prerelease_project $dist; then
   num_old_pkgs=`find $OLDDIR  -name '*.rpm' -and ! -name '*.delta.rpm' -and ! -name '*.src.rpm' | wc -l`
   if test $num_new_pkgs != $num_old_pkgs; then
      echo "different number of subpackages"
-     find $OLDDIR $NEWDIRS -name '*.rpm' -and ! -name '*.delta.rpm'
+     find $OLDDIR $NEWDIRS -name '*.rpm' -and ! -name '*.delta.rpm' -and ! -name '*.src.rpm'
      exit 1
   fi