diff options
author | asami <asami@FreeBSD.org> | 2000-07-13 07:29:30 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 2000-07-13 07:29:30 +0800 |
commit | 42bb16852abd3b289deeb30b8002f124c74430e3 (patch) | |
tree | a39703f3ca36a6c456709a3539801cedd2cc5c20 /Tools | |
parent | 3a26005c68fc496f10ea2ad952c0a72d41667d66 (diff) | |
download | freebsd-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-x | Tools/portbuild/scripts/chopindex | 2 |
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 |