xbps-src: introduce XBPS_STATEDIR to store state files, logs and others.
XBPS_STATEDIR is created in XBPS_BUILDDIR/.xbps-${sourcepkg}-${version} and contains logs and state files for all phases, as well as wrappers. We can now inspect the output from all hooks.
This commit is contained in:
@@ -25,7 +25,7 @@ for f in $XBPS_COMMONDIR/environment/install/*.sh; do
|
||||
done
|
||||
|
||||
|
||||
XBPS_PREPKG_DONE="$wrksrc/.xbps_${XBPS_CROSS_BUILD}_${PKGNAME}_prepkg_done"
|
||||
XBPS_PREPKG_DONE="${XBPS_STATEDIR}/${PKGNAME}_${XBPS_CROSS_BUILD}_prepkg_done"
|
||||
|
||||
if [ -f $XBPS_PREPKG_DONE ]; then
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user