diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-05-16 10:51:42 -0500 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-05-16 10:51:42 -0500 |
commit | 76c75b8971e4ad2f6c336c9413088e6fd0e70f69 (patch) | |
tree | 7b5296fbfba6e2eaec22479453312681b4037fa9 | |
parent | 254af17f2eb70468d4b1b5d385a2e8154b45ea87 (diff) |
librestage uses an error message when no package is staged
-rwxr-xr-x | librestage | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |