Skip to content

Commit

Permalink
Merge branch 'bugfix' of https://github.com/tewdreyer/bee
Browse files Browse the repository at this point in the history
* 'bugfix' of https://github.com/tewdreyer/bee:
  bee-install: fix pathname evaluation of available packages
  bee-list: fix exact pattern matching in combination with displaying pathnames
  • Loading branch information
mariux committed Jun 5, 2012
2 parents e6c7abe + 567ccd0 commit 41f51ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bee-install.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function pkg_install() {

maxavail=$(${BEE_BINDIR}/beeversion -max ${available[@]})

fileavail=( $(${BEE_LIBEXECDIR}/bee/bee.d/bee-list --available --display-pathname ${maxavail}) )
fileavail=( $(${BEE_LIBEXECDIR}/bee/bee.d/bee-list --available --exact --display-pathname ${maxavail}) )

assert "${#fileavail[@]}" = 1

Expand Down
3 changes: 2 additions & 1 deletion src/bee-list.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ function bee_list_exact() {
fi

for p in $(list_beepackages "${filter}" ${1}) ; do
if [ "${1}" = "${p}" ] ; then
pall=$(@BINDIR@/beeversion --pkgallpkg "${p}")
if [ "${1}" = "${pall}" ] ; then
echo "${p}"
continue
fi
Expand Down

0 comments on commit 41f51ab

Please sign in to comment.