always check if there is a newer INDEX database is available

PR: 224465
This commit is contained in:
Wolfram Schneider 2017-12-20 08:13:57 +00:00
parent c1990e4b7a
commit 23b67b4931
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51323

View file

@ -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