Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2014-06-29 23:23:09 +1000
committerAllan McRae <allan@archlinux.org>2014-08-04 14:23:58 +1000
commitdce82f9d198aed6ee1700048cd49dd3f95bdc9a7 (patch)
tree624f37d5e24646d745061b244c5245c87764caa8 /scripts/makepkg.sh.in
parent7e87614665f667cc550acab3626ab6ad655541c7 (diff)
makepkg: skip dependency checking with --verifysource
Dependencies are now handled with --nobuild unless specificially skipped. Using --verifysource will skip dependency checks unless --syncdeps is specified. Fixes FS#35057 and FS#36999. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 48e19899..b2cb599a 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2449,7 +2449,7 @@ check_vcs_software() {
local uninstalled
uninstalled="$(set +E; check_deps $client)" || exit 1
# if not installed, check presence in depends or makedepends
- if [[ -n "$uninstalled" ]] && (( ! NODEPS )); then
+ if [[ -n "$uninstalled" ]] && (( ! NODEPS || ( VERIFYSOURCE && !DEP_BIN ) )); then
if ! in_array "$client" ${depends[@]} ${makedepends[@]}; then
error "$(gettext "Cannot find the %s package needed to handle %s sources.")" \
"$client" "${proto%%+*}"
@@ -3132,7 +3132,7 @@ if (( SOURCEONLY )); then
exit 0
fi
-if (( NODEPS || (NOBUILD && !DEP_BIN ) )); then
+if (( NODEPS || ( VERIFYSOURCE && !DEP_BIN ) )); then
# no warning message needed for nobuild
if (( NODEPS )); then
warning "$(gettext "Skipping dependency checks.")"