summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibrestage8
1 files changed, 8 insertions, 0 deletions
diff --git a/librestage b/librestage
index 498801b..e51975b 100755
--- a/librestage
+++ b/librestage
@@ -72,6 +72,7 @@ SRCPKGDEST=${SRCPKGDEST:-.}
PKGEXT=".pkg.tar.?z"
+staged='n'
# Copies the packages to the specified repos inside staging
for _arch in ${arch[@]}; do
for pkg in ${pkgname[@]}; do
@@ -95,6 +96,7 @@ for _arch in ${arch[@]}; do
exit 1
} && {
msg2 "${pkg} staged on [${_repo}]"
+ staged='y'
}
} || {
ln "${canonical}" "${WORKDIR}/staging/${_repo}/${pkgfile}" || {
@@ -102,6 +104,7 @@ for _arch in ${arch[@]}; do
exit 1
} && {
msg2 "${pkg} staged on [${_repo}]"
+ staged='y'
}
}
done
@@ -109,4 +112,9 @@ for _arch in ${arch[@]}; do
done
done
+if [ $staged = 'n' ]; then
+ error "No package was staged"
+ exit 1
+fi
+
exit 0