From 410bcf7cc73b397d208240fb17e8f5216b89ba1a Mon Sep 17 00:00:00 2001 From: Xin LI Date: Fri, 7 Jun 2013 20:21:30 +0000 Subject: [PATCH] Make 'portsnap alfred' overwrite ports tree if it's not created by a portsnap. Discussed with: alfred Reviewed by: cperciva --- usr.sbin/portsnap/portsnap/portsnap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/portsnap/portsnap/portsnap.sh b/usr.sbin/portsnap/portsnap/portsnap.sh index f9f4716375d7..5826fa1b7379 100644 --- a/usr.sbin/portsnap/portsnap/portsnap.sh +++ b/usr.sbin/portsnap/portsnap/portsnap.sh @@ -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