xbps-src: only touch status phase files on success, misc changes.
This commit is contained in:
parent
8beee2c33e
commit
f3e5df1558
4 changed files with 19 additions and 16 deletions
|
@ -63,7 +63,7 @@ install_src_phase()
|
|||
# Run pre_install func.
|
||||
if [ ! -f $XBPS_PRE_INSTALL_DONE ]; then
|
||||
run_func pre_install
|
||||
touch -f $XBPS_PRE_INSTALL_DONE
|
||||
[ $? -eq 0 ] && touch -f $XBPS_PRE_INSTALL_DONE
|
||||
fi
|
||||
|
||||
# Type of installation: custom, make or python.
|
||||
|
@ -83,7 +83,7 @@ install_src_phase()
|
|||
# Run post_install func.
|
||||
if [ ! -f $XBPS_POST_INSTALL_DONE ]; then
|
||||
run_func post_install
|
||||
touch -f $XBPS_POST_INSTALL_DONE
|
||||
[ $? -eq 0 ] && touch -f $XBPS_POST_INSTALL_DONE
|
||||
fi
|
||||
|
||||
# Remove libtool archives by default.
|
||||
|
@ -129,7 +129,8 @@ install_src_phase()
|
|||
set_tmpl_common_vars
|
||||
if [ ! -f ${wrksrc}/.xbps_do_install_${pkgname}_done ]; then
|
||||
run_func do_install
|
||||
touch -f ${wrksrc}/.xbps_do_install_${pkgname}_done
|
||||
[ $? -eq 0 ] && \
|
||||
touch -f ${wrksrc}/.xbps_do_install_${pkgname}_done
|
||||
else
|
||||
msg_warn "$pkgver: skipping '$pkgname' subpkg, already installed into destdir.\n"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue