Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Dec 2017 08:13:57 +0000 (UTC)
From:      Wolfram Schneider <wosch@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r51323 - head/en_US.ISO8859-1/htdocs/ports
Message-ID:  <201712200813.vBK8DvQ4004071@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712200813.vBK8DvQ4004071>