svn commit: r51323 - head/en_US.ISO8859-1/htdocs/ports

Wolfram Schneider <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.