xbps-src: Add remove-obsoletes command

This commit is contained in:
Michael Aldridge 2021-04-11 02:32:01 -07:00
parent a30fee551f
commit f5e766c248
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,6 @@
remove_obsoletes () {
for repo in $XBPS_HOSTDIR/binpkgs $XBPS_HOSTDIR/binpkgs/debug $XBPS_HOSTDIR/binpkgs/nonfree $XBPS_HOSTDIR/binpkgs/multilib/ $XBPS_HOSTDIR/binpkgs/multilib/nonfree ; do
msg_normal "Cleaning $repo\n"
XBPS_ARCH=${XBPS_CROSS_TARGET:-$XBPS_MACHINE} $XBPS_RINDEX_CMD -r $repo
done
}