xbps-src: improve run_func and always make a log in $wrksrc.
Also when or after the pkg is installed to destdir/stowned, and there was any error, always remove the files that were installed into destdir. With these changes there's no need to return any value in the do_foo() functions because they are caught automatically. Also any function is now logged into its own file to always log what happens.
This commit is contained in:
parent
4965921029
commit
08d47bc8b1
8 changed files with 158 additions and 151 deletions
|
@ -70,7 +70,7 @@ fetch_distfiles()
|
|||
|
||||
if [ -n "$nofetch" ]; then
|
||||
msg_normal "Package '$pkgname ($lver)': running do_fetch phase."
|
||||
cd ${XBPS_BUILDDIR} && run_func do_fetch 2>/dev/null && return $?
|
||||
cd ${XBPS_BUILDDIR} && run_func do_fetch && return $?
|
||||
fi
|
||||
|
||||
cd $XBPS_SRCDISTDIR || return 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue