On Mon, 4 Aug 2025, Kimmo Suominen wrote:
I'm assuming that the packages are in /All, so <a href="/pkgin-25.5.1.tgz"> points to something that does not exist on the web server.
That's just an artefact of the way I ran my tests. What actually happens is that bozohttpd generates an index.html with only relative links: <a href="xxxx">xxxx</a> every time; while simple-http-server always generates absolute paths (from server root) like this: <a href="/foo/bar/xxxx">xxxx</a>
In other words, this does not seem like a pkg_add bug at all.
Looks like pkg_add relies on a bozohttpd-like dir. listing. It should do something like a basename(3) on the `href' links. Both lynx(1) and firefox treat both link types the same. -RVP