xbps-src: new target: clean-autodeps. To force autodeps removal.
This commit is contained in:
parent
e2f28d0b7d
commit
5cf08f1381
|
@ -92,7 +92,7 @@ autoremove_pkg_dependencies()
|
|||
if [ -n "$XBPS_PREFER_BINPKG_DEPS" -a -z "$bootstrap" ]; then
|
||||
msg_normal "$pkgver: removing automatically installed dependencies ...\n"
|
||||
# Autoremove installed binary packages.
|
||||
${cmd} -y reconfigure all && ${cmd} -Rpyf autoremove 2>&1 >/dev/null
|
||||
${cmd} -y reconfigure all && ${cmd} -Rpyf autoremove
|
||||
if [ $? -ne 0 ]; then
|
||||
msg_red "$pkgver: failed to remove automatic dependencies!\n"
|
||||
exit 1
|
||||
|
|
|
@ -85,6 +85,9 @@ Targets:
|
|||
clean [pkgname]
|
||||
Remove <pkgname> build directory.
|
||||
|
||||
clean-autodeps
|
||||
Removes all package dependencies installed automatically.
|
||||
|
||||
configure [pkgname]
|
||||
Configure a package (fetch + extract + configure).
|
||||
|
||||
|
@ -431,6 +434,14 @@ clean)
|
|||
setup_tmpl ${_pkgname}
|
||||
remove_tmpl_wrksrc $wrksrc
|
||||
;;
|
||||
clean-autodeps)
|
||||
if [ -z "$IN_CHROOT" ]; then
|
||||
xbps_chroot_handler clean-autodeps dummy
|
||||
else
|
||||
pkgver=xbps-src
|
||||
autoremove_pkg_dependencies
|
||||
fi
|
||||
;;
|
||||
extract|fetch)
|
||||
if [ -z "${_pkgname}" ]; then
|
||||
[ ! -r ./template ] && msg_error "missing build template in $(pwd).\n"
|
||||
|
|
Loading…
Reference in New Issue
Block a user