if ! source "$file"; then
Builtin `source` returns the status of the last command executed in FILENAME;
Is this what you want?
Thanks, RenWen
error "$(gettext "Failed to source %s")" "$1"
exit 1
fi
- done shopt -s extglob
}
@@ -1626,7 +1630,6 @@ merge_arch_attrs() {
source_buildfile() { source_safe "$@"
- if (( !SOURCEONLY )); then merge_arch_attrs fi
@@ -3661,6 +3664,7 @@ SRCEXT=${_SRCEXT:-$SRCEXT} GPGKEY=${_GPGKEY:-$GPGKEY} PACKAGER=${_PACKAGER:-$PACKAGER} CARCH=${_CARCH:-$CARCH} +PKGBUILD_TAG=$PKGBUILD_TAG
if (( INFAKEROOT )); then if [[ -z $FAKEROOTKEY ]]; then @@ -3691,7 +3695,7 @@ else if [[ ${BUILDFILE:0:1} != "/" ]]; then BUILDFILE="$startdir/$BUILDFILE" fi
- source_buildfile "$BUILDFILE"
- source_buildfile "$BUILDFILE" "$BUILDFILE$PKGBUILD_TAG"
fi
# set defaults if they weren't specified in buildfile
2.23.0