always check if there is a newer INDEX database is available
PR: 224465
This commit is contained in:
parent
c1990e4b7a
commit
23b67b4931
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51323
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue