diff --git a/functions.sh.in b/functions.sh.in index 0b0bc3b..395e407 100644 --- a/functions.sh.in +++ b/functions.sh.in @@ -46,6 +46,8 @@ readconfig() { APORTSDIR= fi fi + # source any .abuild file at the aports root, but only if we are currently in aports tree + [ -n "$APORTSDIR" ] && [ -f "$APORTSDIR/.abuild" ] && [ "$APORTSDIR" = "$gitbase" ] && . "$APORTSDIR/.abuild" BUILDDIR=${_BUILDDIR-$BUILDDIR} PKGDEST=${_PKGDEST-$PKGDEST} SRCPKGDEST=${_SRCPKGDEST-$SRCPKGDEST}