aboutsummaryrefslogtreecommitdiff
path: root/en_US.ISO8859-1/htdocs/ports
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>2017-12-20 08:13:57 +0000
committerWolfram Schneider <wosch@FreeBSD.org>2017-12-20 08:13:57 +0000
commit23b67b493106edfc3f19dcac2802ec7dd1eebb09 (patch)
tree282a327b4aeeb24ff763129553e5b79b74658b87 /en_US.ISO8859-1/htdocs/ports
parentc1990e4b7a611603f8cd42aa8c5564fc232a4f39 (diff)
downloaddoc-23b67b493106edfc3f19dcac2802ec7dd1eebb09.tar.gz
doc-23b67b493106edfc3f19dcac2802ec7dd1eebb09.zip
always check if there is a newer INDEX database is available
PR: 224465
Notes
Notes: svn path=/head/; revision=51323
Diffstat (limited to 'en_US.ISO8859-1/htdocs/ports')
-rw-r--r--en_US.ISO8859-1/htdocs/ports/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/en_US.ISO8859-1/htdocs/ports/Makefile b/en_US.ISO8859-1/htdocs/ports/Makefile
index 25f89c41e1..379e00ca65 100644
--- a/en_US.ISO8859-1/htdocs/ports/Makefile
+++ b/en_US.ISO8859-1/htdocs/ports/Makefile
@@ -19,9 +19,13 @@ ${INDEX}: ${PINDEX_OVERRIDE}
${INDEX}: $${PORTSBASE}/${PINDEX}
${CP} ${PORTSBASE}/${PINDEX} ${INDEX}
.else
-${INDEX}:
+
+${INDEX}: ${INDEX}.bz2
+${INDEX}.bz2: .EXEC
${FETCH} ${FETCH_OPT} -o ${INDEX}.bz2 ${INDEXURI}.bz2
- ${BUNZIP2} ${INDEX}.bz2
+ if [ ! -e ${INDEX} -o ${INDEX}.bz2 -nt ${INDEX} ]; then \
+ ${BUNZIP2} -dc ${INDEX}.bz2 > ${INDEX}.tmp && ${MV} -f ${INDEX}.tmp ${INDEX}; \
+ fi
.endif
HOSTNAME!= hostname