From f0ef8e8792c3a6764e613dbc647218967c357e39 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Tue, 12 Feb 2019 15:37:22 +0100 Subject: [PATCH] xbps-src: add clean-repocache command --- xbps-src | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xbps-src b/xbps-src index c6c55de63b5..48cf983958d 100755 --- a/xbps-src +++ b/xbps-src @@ -44,6 +44,9 @@ clean [pkgname] If argument is specified, package files from /destdir and its build directory in /buiddir are removed. +clean-repocache + Removes obsolete packages from /repocache. + configure 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 ;;