Less verbose id-mk-deb-src.sh
[git-tools-moved-to-github.git] / id-rpm-build / upload-rpms.sh
index 7ef5b3d..9450fbe 100755 (executable)
@@ -18,6 +18,8 @@ fi
 if test -z "$DISTRO"; then
        if grep 'release 6' /etc/redhat-release >/dev/null; then
                DISTRO="centos/6"
+        elif grep 'release 7' /etc/redhat-release > /dev/null; then
+                DISTRO="centos/7"
        else
                DISTRO="centos/5.5"
        fi
@@ -42,13 +44,14 @@ if test ! -d ${BUILD_DIR}/RPMS; then
 fi
 
 for pkg in ${pkg_names}; do
+       copy=false
        if $inc_src; then
                if test -f ${BUILD_DIR}/SRPMS/${pkg}.src.rpm; then
                        scp ${BUILD_DIR}/SRPMS/${pkg}.src.rpm ${UPLOAD_URI}/redhat/${DISTRO}/SRPMS/
+                       copy=true
                fi
        fi
        if $inc_bin; then
-               copy=false
                for dir in ${BUILD_DIR}/RPMS/*; do
                        arch=`basename ${dir}`
                        if test -f ${dir}/${pkg}.${arch}.rpm; then