From 3be4d85b6c7ba8e85e63a68b26d841e7388531ce Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Tue, 2 Jun 2020 06:59:29 -0600 Subject: [PATCH] void: add xqupdate function --- fish/void-quick | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/fish/void-quick b/fish/void-quick index 20096d5..70763cd 100644 --- a/fish/void-quick +++ b/fish/void-quick @@ -25,3 +25,16 @@ function xqrebuild -d "Rebuild some of our srcpkgs" xqdir xbulk $argv 2>&1 | tee /tmp/xqrebuild.log | less +F end + +function xqupdate -d "Updates the srcpkg repository for use" + echo "This command must be done after you have updated." + echo "If you haven't yet, run `sudo xbps-install -Su'." + echo "Type 'ok' to continue, or anything else to exit." + if test (read) != "ok" + exit 1 + end + xqdir + git pull + rm -rf $XBPS_MASTERDIR + ./xbps-src binary-bootstrap +end