diff options
author | Junghyun Kim <jh0822.kim@samsung.com> | 2017-01-10 07:47:07 +0900 |
---|---|---|
committer | Junghyun Kim <jh0822.kim@samsung.com> | 2017-01-10 07:47:07 +0900 |
commit | 473fcf82ba42b874d8137cecaacfc629a128360c (patch) | |
tree | 6d3c7a54d7e8b945c6ba0e52e30fcd2e421bb347 | |
parent | 4e0e63fc40159fbefb71400606116c13442e0f3c (diff) | |
download | build-compare-accepted/tizen_3.0_base.tar.gz build-compare-accepted/tizen_3.0_base.tar.bz2 build-compare-accepted/tizen_3.0_base.zip |
BUGFIXED: source functions.sh in same-build-result.shsubmit/tizen_3.0_base/20170110.011648accepted/tizen/3.0/base/20170120.103601tizen_3.0_baseaccepted/tizen_3.0_base
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>
-rw-r--r-- | packaging/same-build-result.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packaging/same-build-result.sh b/packaging/same-build-result.sh index 2e879e4..701ccf2 100644 --- a/packaging/same-build-result.sh +++ b/packaging/same-build-result.sh @@ -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 |