Don't validate SRC_ARCHIVE if GETPKG=0

This commit is contained in:
Manuel Canales Esparcia 2006-08-11 18:36:47 +00:00
parent d9daa95898
commit 9287cb6bbb

View file

@ -232,7 +232,7 @@ inline_doc
# Validate directories, testable states: # Validate directories, testable states:
# fatal -z -d -w, # fatal -z -d -w,
# warning -z+ -w+ # warning -z+ -w+
SRC_ARCHIVE) validate_dir -z+ -d -w+ ;; SRC_ARCHIVE) [[ "$GETPKG" = "1" ]] && validate_dir -z+ -d -w+ ;;
BUILDDIR) # The build directory/partition MUST exist and be writable by the user BUILDDIR) # The build directory/partition MUST exist and be writable by the user
validate_dir -z -d -w validate_dir -z -d -w
[[ "xx x/x" =~ "x${!config_param}x" ]] && [[ "xx x/x" =~ "x${!config_param}x" ]] &&