[PC-BSD Commits] r9563 - pcbsd/current/src-sh/pbi-manager
svn at pcbsd.org
svn at pcbsd.org
Mon Mar 7 12:14:07 PST 2011
Author: kris
Date: 2011-03-07 12:14:07 -0800 (Mon, 07 Mar 2011)
New Revision: 9563
Modified:
pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:
Fixed case-sensitive check in category searching
Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager 2011-03-07 20:05:24 UTC (rev 9562)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager 2011-03-07 20:14:07 UTC (rev 9563)
@@ -1886,7 +1886,7 @@
elif [ ! -z "$PBI_BROWSE_CAT" ] ; then
echo "Using RepoID: $PBI_BROWSE_RID"
echo "Available PBIs for Category: $PBI_BROWSE_CAT"
- grep -i -e "^App=" -e ";${PBI_BROWSE_CAT};" $PBI_BROWSE_METAFILE > ${PBI_TMPDIR}/.meta.$$
+ grep -i -e "^App=" -i -e ";${PBI_BROWSE_CAT};" $PBI_BROWSE_METAFILE > ${PBI_TMPDIR}/.meta.$$
elif [ ! -z "$PBI_BROWSE_SEARCH" ] ; then
echo "Using RepoID: $PBI_BROWSE_RID"
echo "Searching for: $PBI_BROWSE_SEARCH"
@@ -1903,7 +1903,9 @@
# Make sure this is from the correct category
if [ ! -z "$PBI_BROWSE_CAT" ] ; then
- if [ "$catCheck" != "$PBI_BROWSE_CAT" ]; then
+ _cCheck=`echo $catCheck | tr "[:lower:]" "[:upper:]"`
+ _cCheck2=`echo $PBI_BROWSE_CAT | tr "[:lower:]" "[:upper:]"`
+ if [ "$_cCheck" != "$_cCheck2" ]; then
continue
fi
fi
More information about the Commits
mailing list