[PC-BSD Commits] r12671 - pcbsd/current/src-sh/pbi-manager
svn at pcbsd.org
svn at pcbsd.org
Wed Sep 7 07:26:03 PDT 2011
Author: kris
Date: 2011-09-07 07:26:03 -0700 (Wed, 07 Sep 2011)
New Revision: 12671
Modified:
pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:
Make sure we only match the specific name when working on the index
Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager 2011-09-07 14:09:03 UTC (rev 12670)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager 2011-09-07 14:26:03 UTC (rev 12671)
@@ -1853,7 +1853,7 @@
init_tmpdir
_pbilow="`echo ${PBI_IT_REMNAME} | tr '[:upper:]' '[:lower:]' | sed 's| ||g'`"
- cat "${PBI_IT_REMINDEX}" | grep -v "${_pbilow}:${PBI_IT_REMARCH}:${PBI_IT_REMVER}" \
+ cat "${PBI_IT_REMINDEX}" | grep -v "^${_pbilow}:${PBI_IT_REMARCH}:${PBI_IT_REMVER}" \
> "${PBI_TMPDIR}/.indextmp"
sort ${PBI_TMPDIR}/.indextmp > "${PBI_IT_REMINDEX}"
@@ -1887,7 +1887,7 @@
while read iLine
do
- echo "$iLine" | grep "${1}:${2}:" >/dev/null 2>/dev/null
+ echo "$iLine" | grep "^${1}:${2}:" >/dev/null 2>/dev/null
if [ "$?" != "0" ] ; then
echo "$iLine" >> ${PBI_TMPDIR}/.indextmp
continue
@@ -1915,7 +1915,7 @@
local found="0"
while read iLine
do
- echo "$iLine" | grep "${1}:${2}:" >/dev/null 2>/dev/null
+ echo "$iLine" | grep "^${1}:${2}:" >/dev/null 2>/dev/null
if [ "$?" != "0" ] ; then
echo "$iLine" >> ${PBI_TMPDIR}/.indextmp
continue
More information about the Commits
mailing list