From ad25ca528498711ea7a9a597079c6ea008818557 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 22 May 2014 11:47:42 +0200 Subject: [PATCH] Fix check for SRPMS --- id-rpm-build/upload-rpms.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/id-rpm-build/upload-rpms.sh b/id-rpm-build/upload-rpms.sh index 0562b70..7ef5b3d 100755 --- a/id-rpm-build/upload-rpms.sh +++ b/id-rpm-build/upload-rpms.sh @@ -43,11 +43,9 @@ fi for pkg in ${pkg_names}; do if $inc_src; then - if test ! -f ${BUILD_DIR}/SRPMS/${pkg}.src.rpm; then - echo "FAILED: No SRPM for ${pkg}" - exit 1 + if test -f ${BUILD_DIR}/SRPMS/${pkg}.src.rpm; then + scp ${BUILD_DIR}/SRPMS/${pkg}.src.rpm ${UPLOAD_URI}/redhat/${DISTRO}/SRPMS/ fi - scp ${BUILD_DIR}/SRPMS/${pkg}.src.rpm ${UPLOAD_URI}/redhat/${DISTRO}/SRPMS/ fi if $inc_bin; then copy=false -- 1.7.10.4