xbps-src: add clean-repocache command

This commit is contained in:
Duncaen 2019-02-12 15:37:22 +01:00 committed by maxice8
parent f93f5b2b96
commit f0ef8e8792
1 changed files with 7 additions and 0 deletions

View File

@ -44,6 +44,9 @@ clean [pkgname]
If <pkgname> argument is specified, package files from <masterdir>/destdir and its
build directory in <masterdir>/buiddir are removed.
clean-repocache
Removes obsolete packages from <hostdir>/repocache.
configure <pkgname>
Configure a package (fetch + extract + configure).
@ -709,6 +712,10 @@ case "$XBPS_TARGET" in
remove_pkg $XBPS_CROSS_BUILD
fi
;;
clean-repocache)
export XBPS_TARGET_ARCH="${XBPS_CROSS_BUILD:-$XBPS_TARGET_MACHINE}"
$XBPS_REMOVE_CMD -C /dev/null -c $XBPS_HOSTDIR/repocache -O
;;
consistency-check)
consistency_check
;;