From: David Galloway Date: Thu, 22 Aug 2019 21:22:24 +0000 (-0400) Subject: ceph-iscsi-stable: Check for specific package files X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5a6b5bc13bfa4d5c7bb902e5b28c2f0a1f4099ef;p=ceph-build.git ceph-iscsi-stable: Check for specific package files The -f `-*` got expanded too many times if there are multiple matches which broke the `if` statement. Signed-off-by: David Galloway --- diff --git a/ceph-iscsi-stable/build/build_rpm b/ceph-iscsi-stable/build/build_rpm index 6e2a46c3..2ec241d7 100644 --- a/ceph-iscsi-stable/build/build_rpm +++ b/ceph-iscsi-stable/build/build_rpm @@ -65,13 +65,13 @@ chacra_endpoint="ceph-iscsi/${REPO_MAJOR_VERSION}/${GIT_COMMIT}/${DISTRO}/${RELE chacra_repo_endpoint="${chacra_endpoint}/flavors/default" # check to make sure ceph-iscsi-config package built -if [ ! -f $WORKSPACE/dist/RPMS/ceph-iscsi-*.rpm ]; then +if [ ! -f $WORKSPACE/dist/RPMS/ceph-iscsi-${CEPH_ISCSI_BRANCH}-1.el${RELEASE}.noarch.rpm ]; then echo "ceph-iscsi rpm not built!" exit 1 fi # check to make sure ceph-iscsi-tools package built -if [ ! -f $WORKSPACE/dist/RPMS/ceph-iscsi-tools-*.rpm ]; then +if [ ! -f $WORKSPACE/dist/RPMS/ceph-iscsi-tools-${CEPH_ISCSI_TOOLS_BRANCH}-1.el${RELEASE}.noarch.rpm ]; then echo "ceph-iscsi-tools rpm not built!" exit 1 fi