#20 Seeking a little insight into why this code is commented out

已關閉
jimmy7 年之前創建 · 1 條評論
#for port in $(cat files/ports/whitelist)
#do
#	if grep "^$port-" $PATCH_DIR/INDEX || grep "/$port||" $PATCH_DIR/INDEX
#	then
#		echo "OK" > /dev/null
#	else
#		echo "$port" >> files/ports/blacklist
#		linedel "/$port " INDEX
#		echo "$port has a non-free depedency-- it has been added to the blacklist."
#		echo "You'll have to re-run this script in order to apply this change."
#		sleep 2
#	fi
#done

I'm just wondering why this code is commented out, my use of git blame suggests this was written by my favourite bash wizard @jadedctrl

``` #for port in $(cat files/ports/whitelist) #do # if grep "^$port-" $PATCH_DIR/INDEX || grep "/$port||" $PATCH_DIR/INDEX # then # echo "OK" > /dev/null # else # echo "$port" >> files/ports/blacklist # linedel "/$port " INDEX # echo "$port has a non-free depedency-- it has been added to the blacklist." # echo "You'll have to re-run this script in order to apply this change." # sleep 2 # fi #done ``` I'm just wondering why this code is commented out, my use of git blame suggests this was written by my favourite bash wizard @jadedctrl
Jaidyn Ann 評論 7 年之前'
所有者

IIRC, I commented it out because it doesn't work, and brings up a ton of false-flags. I put it in my mental to-do-later pile, jaja. The data from the old ports deblob script (used for 5.9/6.0 tree; files/ports/[black|white]list) are still valid and up-to-date, so it isn't important that this be fixed right now-- although it really needs to be at some point.

IIRC, I commented it out because it doesn't work, and brings up a ton of false-flags. I put it in my mental to-do-later pile, jaja. The data from the old ports deblob script (used for 5.9/6.0 tree; files/ports/[black|white]list) are still valid and up-to-date, so it isn't important that this be fixed right now-- although it really needs to be at some point.
登入 才能加入這對話。
未選擇標籤
未選擇里程碑
未指派成員
2 參與者
正在加載...
取消
保存
尚未有任何內容