From 784a38709849f25b71cab585c73c6ba509de38ad Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 16 Aug 2014 23:05:40 -0400 Subject: remotes: move refcaching to disk This speeds up a lot of operations substantially, at the cost of occasionally being wrong for a little while when new packages are added/removed from the repositories. Mostly, this is for the sake of the completions. --- asp.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'asp.in') diff --git a/asp.in b/asp.in index 94cc420..cb983a4 100644 --- a/asp.in +++ b/asp.in @@ -5,6 +5,7 @@ ARCH_GIT_REPOS=(packages community) OPT_ARCH=$(uname -m) OPT_FORCE=0 : ${ASPROOT:=$HOME/asp} +: ${ASPCACHE:=$ASPROOT/cache} m4_include(util.inc.sh) m4_include(remote.inc.sh) @@ -88,6 +89,8 @@ initialize() { migrate_bare_repo fi + [[ -d $ASPCACHE ]] || mkdir -p "$ASPCACHE" + [[ -f .asp ]] && return 0 git init || return 1 -- cgit v1.2.3-70-g09d2