summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>2000-07-12 23:29:30 +0000
committerSatoshi Asami <asami@FreeBSD.org>2000-07-12 23:29:30 +0000
commit8d9ad9015d8cb706414d6e1d00170f424c9ef569 (patch)
treee621c16c6b42bbdc649a0e74e28f6403f978fed8 /Tools
parentUpdate to newest version. (diff)
Fix benign bug which had the script claiming to delete any package that
includes a missing package's name as a substring (e.g., ja-mh-6.8.4 vs. mh-6.8.4), when it wasn't actually deleting it anyway.
Notes
Notes: svn path=/head/; revision=30542
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/chopindex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/chopindex b/Tools/portbuild/scripts/chopindex
index 1c2b4745d595..db29258e0ddb 100755
--- a/Tools/portbuild/scripts/chopindex
+++ b/Tools/portbuild/scripts/chopindex
@@ -23,7 +23,7 @@ missing=$(/usr/bin/awk -v FS="|" -v pkgdir=$pkgdir '{
delete=""
sed=""
for i in $missing; do
- if fgrep -q $i $tmpindex; then
+ if grep -q "[ |]$i[ |]" $tmpindex; then
delete="$delete $i"
sed="$sed -e s/$(echo $i | sed -e 's/\./\\./g')//g"
fi