diff options
author | delphij <delphij@FreeBSD.org> | 2013-06-07 20:21:30 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-06-07 20:21:30 +0000 |
commit | cf69e9d6c1b12e721a2037823d6e271ce96159cf (patch) | |
tree | a7648ad583ea7c5198dc7e8ef4462d4a57c7a5f5 | |
parent | 41b9477759cc441e7a1344c8268f67e89b438d6a (diff) | |
download | FreeBSD-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
-rw-r--r-- | usr.sbin/portsnap/portsnap/portsnap.sh | 2 |
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 |