Skip to content

Commit

Permalink
Merge branch 'bee-cache'
Browse files Browse the repository at this point in the history
* bee-cache:
  bee-cache: New command 'grep [grep-options] [pattern]'
  • Loading branch information
mariux committed Aug 7, 2012
2 parents 86db6bc + 3361347 commit e1a0957
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bee-cache.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ function cache_update_pkg() {
return 0
}

function cache_grep() {
${BEEFLOCK} --shared ${BEECACHE_INVENTORY} \
grep "${@}" ${BEECACHE_INVENTORY}
}

function print_conflicts() {
local pkg=${1}

Expand Down Expand Up @@ -239,6 +244,9 @@ cache_verify
tmpinstall_to_filenames

case "${cmd}" in
grep)
cache_grep "${@}" | cut -d ' ' -f${FIELDS}
;;
update)
cache_update "${@}"
;;
Expand Down

0 comments on commit e1a0957

Please sign in to comment.