diff options
Diffstat (limited to 'src/dagpkg')
-rwxr-xr-x | src/dagpkg | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -54,7 +54,7 @@ source_pkgbuild() { # Source this PKGBUILD, if it doesn't exist, exit if ! load_PKGBUILD &>/dev/null; then error "No PKGBUILD in %s" "$PWD" - exit 1 + exit $EXIT_FAILURE fi # Save resources @@ -89,9 +89,13 @@ visit_pkgbuild() { # Detect cycle or already visited package case "${marks[$name]:-0}" in - 1) msg2 "cycle found with %s depending on %s" "$prev" "$name" - exit 1;; - 2) return;; + 1) + msg2 "cycle found with %s depending on %s" "$prev" "$name" + exit $EXIT_FAILURE + ;; + 2) + return + ;; esac msg "%s (%s)" "${name}" "${prev}" |