index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-07-25 15:01:05 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-07-25 15:01:05 +0200 |
commit | d8f6cd5f88228dfd8ddbe501e980cc66c88d5742 (patch) | |
tree | d2e3a29694acec7ec4f5acfcaadbaa0b25532c86 /lib | |
parent | 22cd0ae466e2a8423a3942d814750cd7268eb987 (diff) |
-rwxr-xr-x | lib/common-functions | 11 |
diff --git a/lib/common-functions b/lib/common-functions index 45438cd..6cf0231 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -80,7 +80,7 @@ find_repository_with_commit() { fi done >&2 printf 'find_repository_with_commit: Cannot find repository with commit "%s"\n' "$1" - exit 1 + return 2 } @@ -311,13 +311,14 @@ make_source_info() { local PKGBUILD local PKGBUILD_mod - git_repo=$(find_repository_with_commit "${git_revision}") - - if [ -z "${git_repo}" ]; then + if ! git_repo=$(find_repository_with_commit "${git_revision}") || \ + [ -z "${git_repo}" ]; then return 1 fi - find_pkgbuilds "${package}" "${repository}" "${git_repo}" "${git_revision}" "${mod_git_revision}" + if ! find_pkgbuilds "${package}" "${repository}" "${git_repo}" "${git_revision}" "${mod_git_revision}"; then + return 1 + fi ( # the new shell is intentional |