Skip to content

Commit

Permalink
bee-list: renamed option --exact to --by-pkgfullname
Browse files Browse the repository at this point in the history
--exact is still available for compatibility but not documented anymore
  • Loading branch information
mariux committed Nov 16, 2011
1 parent 8e3ffca commit 2d17311
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions manpages/bee-list.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bee\-list \- List installed and available bee packages
.SH "SYNOPSIS"
.SY "bee list"
.OP \-ahi
.OP \-\-exact
.OP \-\-by\-pkgfullname
.I pattern
.YS
.SH "DESCRIPTION"
Expand All @@ -24,7 +24,7 @@ is invoked by the wrapper tool
List all bee packages available for installation that match
.IR pattern .
.TP
.B \-\-exact
.B \-\-by\-pkgfullname
Use this flag, if you want that
.I pattern
has to match the full packagename.
Expand Down
4 changes: 2 additions & 2 deletions src/bee-check.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pkg_check_all() {
##
##
pkg_check_deps() {
installed=$(${BEE_LIBEXECDIR}/bee/bee.d/bee-list --installed --exact ${1})
installed=$(${BEE_LIBEXECDIR}/bee/bee.d/bee-list --installed --by-pkgfullname ${1})

if [ ! "${installed}" -a $OPT_F -gt 0 ] ; then
installed=$(${BEE_LIBEXECDIR}/bee/bee.d/bee-list --installed "${1}")
Expand All @@ -74,7 +74,7 @@ pkg_check_deps() {
##
##
pkg_check() {
installed=$(${BEE_LIBEXECDIR}/bee/bee.d/bee-list --installed --exact ${1})
installed=$(${BEE_LIBEXECDIR}/bee/bee.d/bee-list --installed --by-pkgfullname ${1})

if [ ! "${installed}" -a $OPT_F -gt 0 ] ; then
installed=$(${BEE_LIBEXECDIR}/bee/bee.d/bee-list --installed "${1}")
Expand Down
5 changes: 3 additions & 2 deletions src/bee-list.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ options=$(getopt -n bee-list \
-o aih \
--long available \
--long installed \
--long by-pkgfullname \
--long exact \
--long help \
--long debug \
Expand Down Expand Up @@ -160,7 +161,7 @@ while true ; do
shift
filter="installed"
;;
--exact)
--by-pkgfullname|--exact)
shift
OPT_EXACT="yes"
;;
Expand All @@ -178,7 +179,7 @@ done

if [ "${OPT_EXACT}" = "yes" ] ; then
if [ ! -z ${2} ] ; then
echo >&2 "argument error: --exact only takes one package at a time .."
echo >&2 "argument error: --by-pkgfullname only takes one package at a time .."
exit 1
fi

Expand Down

0 comments on commit 2d17311

Please sign in to comment.