Allow network access during pbuilder builds
[git-tools-moved-to-github.git] / id-rpm-build / upload-rpms.sh
index 0562b70..2585586 100755 (executable)
@@ -42,15 +42,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
-                       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/
+                       copy=true
                fi
-               scp ${BUILD_DIR}/SRPMS/${pkg}.src.rpm ${UPLOAD_URI}/redhat/${DISTRO}/SRPMS/
        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