svn commit: r51323 - head/en_US.ISO8859-1/htdocs/ports
Wolfram Schneider
wosch at FreeBSD.org
Wed Dec 20 08:13:59 UTC 2017
Author: wosch
Date: Wed Dec 20 08:13:57 2017
New Revision: 51323
URL: https://svnweb.freebsd.org/changeset/doc/51323
Log:
always check if there is a newer INDEX database is available
PR: 224465
Modified:
head/en_US.ISO8859-1/htdocs/ports/Makefile
Modified: head/en_US.ISO8859-1/htdocs/ports/Makefile
==============================================================================
--- head/en_US.ISO8859-1/htdocs/ports/Makefile Tue Dec 19 13:46:37 2017 (r51322)
+++ head/en_US.ISO8859-1/htdocs/ports/Makefile Wed Dec 20 08:13:57 2017 (r51323)
@@ -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
More information about the svn-doc-head
mailing list