summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-06-07 20:21:30 +0000
committerdelphij <delphij@FreeBSD.org>2013-06-07 20:21:30 +0000
commitcf69e9d6c1b12e721a2037823d6e271ce96159cf (patch)
treea7648ad583ea7c5198dc7e8ef4462d4a57c7a5f5 /usr.sbin
parent41b9477759cc441e7a1344c8268f67e89b438d6a (diff)
downloadFreeBSD-src-cf69e9d6c1b12e721a2037823d6e271ce96159cf.zip
FreeBSD-src-cf69e9d6c1b12e721a2037823d6e271ce96159cf.tar.gz
Make 'portsnap alfred' overwrite ports tree if it's not created by a
portsnap. Discussed with: alfred Reviewed by: cperciva
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/portsnap/portsnap/portsnap.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/portsnap/portsnap/portsnap.sh b/usr.sbin/portsnap/portsnap/portsnap.sh
index f9f4716..5826fa1 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
OpenPOWER on IntegriCloud