for pkg in ${pkg_names}; do
if $inc_src; then
if test ! -f ${BUILD_DIR}/SRPMS/${pkg}.src.rpm; then
- echo "No SRPM for ${pkg}"
- else
- scp ${BUILD_DIR}/SRPMS/${pkg}.src.rpm ${UPLOAD_URI}/redhat/${DISTRO}/SRPMS/
- fi
- fi
+ echo "FAILED: No SRPM for ${pkg}"
+ exit 1
+ 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
+ copy=true
scp ${dir}/${pkg}.${arch}.rpm ${UPLOAD_URI}/redhat/${DISTRO}/RPMS/${arch}/
- else
- echo "No ${pkg} in arch ${arch}"
fi
done
+ if ! $copy; then
+ echo "FAILED: No RPM copied for: ${pkg}"
+ exit 1
+ fi
fi
done