Make 'portsnap alfred' overwrite ports tree if it's not created by a

portsnap.

Discussed with:	alfred
Reviewed by:	cperciva
This commit is contained in:
Xin LI 2013-06-07 20:21:30 +00:00
parent d58b075701
commit 410bcf7cc7

View File

@ -1113,7 +1113,7 @@ cmd_alfred() {
else
cmd_cron
fi
if [ -d ${PORTSDIR} ]; then
if [ -r ${PORTSDIR}/.portsnap.INDEX ]; then
cmd_update
else
cmd_extract