aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>2000-07-13 07:29:30 +0800
committerasami <asami@FreeBSD.org>2000-07-13 07:29:30 +0800
commit42bb16852abd3b289deeb30b8002f124c74430e3 (patch)
treea39703f3ca36a6c456709a3539801cedd2cc5c20 /Tools
parent3a26005c68fc496f10ea2ad952c0a72d41667d66 (diff)
downloadfreebsd-ports-gnome-42bb16852abd3b289deeb30b8002f124c74430e3.tar.gz
freebsd-ports-gnome-42bb16852abd3b289deeb30b8002f124c74430e3.tar.zst
freebsd-ports-gnome-42bb16852abd3b289deeb30b8002f124c74430e3.zip
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.
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