Bug 224465

Summary: outdated https://www.freebsd.org/ports/finance.html page
Product: Documentation Reporter: Wolfram Schneider <wosch>
Component: WebsiteAssignee: Wolfram Schneider <wosch>
Status: Closed FIXED    
Severity: Affects Only Me CC: gjb, jgh, linimon
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
ports makefile patch none

Description Wolfram Schneider freebsd_committer freebsd_triage 2017-12-19 17:16:27 UTC
I got a bug report that https://www.freebsd.org/ports/finance.html is not up-to-date. The page will be updated apparently only once a week. The search script https://www.freebsd.org/cgi/ports.cgi use a database less than a day old.

Looking at en_US.ISO8859-1/htdocs/ports/Makefile I think the problem is that we do not check every time if there is a newer INDEX files is available. We run fetch(1) in mirror mode, but don't call it until ./INDEX was removed.

Attached is a patch to solve the issue.
Comment 1 Wolfram Schneider freebsd_committer freebsd_triage 2017-12-19 17:17:27 UTC
Created attachment 188974 [details]
ports makefile patch
Comment 2 Glen Barber freebsd_committer freebsd_triage 2017-12-19 17:37:10 UTC
(In reply to Wolfram Schneider from comment #1)
> Created attachment 188974 [details]
> ports makefile patch

This looks fine to me.
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-12-20 08:14:06 UTC
A commit references this bug:

Author: wosch
Date: Wed Dec 20 08:13:58 UTC 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

Changes:
  head/en_US.ISO8859-1/htdocs/ports/Makefile
Comment 4 Wolfram Schneider freebsd_committer freebsd_triage 2018-01-03 17:07:00 UTC
The page is still a little bit outdated. Today it says in the footer

Last modified: 31-December-2017

instead the expected 3-January-2017

I guess this happens because we are using the env variable PINDEX_OVERRIDE and the file  is outdated.
Comment 5 Jason Helfman freebsd_committer freebsd_triage 2020-07-27 03:15:31 UTC
This may have been fixed...?

Last modified: 23-July-2020 as of today... 26-July-2020

-jgh