From 9a6ece31033248ec2c80f7e11958e44bc03e2e3b Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Mon, 13 Aug 2012 16:52:49 +0200 Subject: [PATCH] bee-cache: New command 'rebuild' Removes and rebuilds the INVENTORY. Only creates the main-INVENTORY and not all .bc files. --- src/bee-cache.sh.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bee-cache.sh.in b/src/bee-cache.sh.in index 0ec8df5..cf0d155 100644 --- a/src/bee-cache.sh.in +++ b/src/bee-cache.sh.in @@ -41,6 +41,10 @@ function cache_verify() { return fi + cache_rebuild +} + +function cache_rebuild() { rm -fr "${BEECACHE_CACHEDIR}" mkdir -p "${BEECACHE_CACHEDIR}" @@ -247,6 +251,9 @@ case "${cmd}" in grep) cache_grep "${@}" | cut -d ' ' -f${FIELDS} ;; + rebuild) + cache_rebuild + ;; update) cache_update "${@}" ;;