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:
parent
8ad235c69d
commit
6e13dcbaff
11 changed files with 33 additions and 33 deletions
|
@ -2,7 +2,7 @@
|
|||
# commit sha1 (in short mode) for all files of a source pkg.
|
||||
|
||||
hook() {
|
||||
local GITREVS_FILE=${wrksrc}/.xbps_${sourcepkg}_git_revs
|
||||
local GITREVS_FILE=${XBPS_STATEDIR}/gitrev
|
||||
local GIT_CMD rev
|
||||
|
||||
# If XBPS_USE_GIT_REVS is disabled in conf file don't continue.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue