Skip to content
This repository has been archived by the owner on Aug 9, 2019. It is now read-only.

Commit

Permalink
Merge pull request #149 from cthbleachbit/master
Browse files Browse the repository at this point in the history
Will exit with code 1 on PKGBUILD download failure
  • Loading branch information
Skunnyk committed Sep 30, 2015
2 parents e75e9b8 + 45e23fb commit f667dc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/pkgbuild.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ get_pkgbuild() {
for ((i=0; i<${#pkgs[@]}; i++)); do
cd "$cwd"
read repo pkg arch pkgver < <(pkgquery -1ASif '%r %n %a %v' "${pkgs[$i]}")
[[ $? -ne 0 ]] && return 1
[[ ! $pkg ]] && continue
[[ $repo = "aur" ]] && pkgbase=$pkg || pkgbase=$(get_pkgbase $pkg $repo $pkgver)
[[ ${pkgs_downloaded[$pkgbase]} ]] && continue
Expand Down
1 change: 1 addition & 0 deletions src/yaourt.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ case "$MAJOR" in
title "$(gettext 'get PKGBUILD')"
load_lib pkgbuild
get_pkgbuild "${ARGS[@]}"
[[ $? -ne 0 ]] && exit 1
;;

backup)
Expand Down

0 comments on commit f667dc9

Please sign in to comment.