1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

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.
This commit is contained in:
Satoshi Asami 2000-07-12 23:29:30 +00:00
parent a3becc9888
commit 8d9ad9015d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30542

View File

@ -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