Skip to content

Commit

Permalink
bee-cache: New command 'rebuild'
Browse files Browse the repository at this point in the history
Removes and rebuilds the INVENTORY.

Only creates the main-INVENTORY and not all .bc files.
  • Loading branch information
mariux committed Aug 13, 2012
1 parent b5c0315 commit 9a6ece3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bee-cache.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ function cache_verify() {
return
fi

cache_rebuild
}

function cache_rebuild() {
rm -fr "${BEECACHE_CACHEDIR}"
mkdir -p "${BEECACHE_CACHEDIR}"

Expand Down Expand Up @@ -247,6 +251,9 @@ case "${cmd}" in
grep)
cache_grep "${@}" | cut -d ' ' -f${FIELDS}
;;
rebuild)
cache_rebuild
;;
update)
cache_update "${@}"
;;
Expand Down

0 comments on commit 9a6ece3

Please sign in to comment.