On Mon, Aug 04, 2025 at 04:13:54AM +0000, RVP wrote:
> On Sun, 3 Aug 2025, ci4ic4 wrote:
> > pkg_add http://192.168.0.49/All/pkgin
> > fails with 'no pkg for ' ...
> 
> If `simple-http-server' is this[1] one, then I can tell you what the issue is:
> 1. simple-http-server returns an `index.html' with `href' links like this:
>   <td><a  href="/pkgin-25.5.1.tgz">pkgin-25.5.1.tgz</a></td>
> 
>    whereas (bozo)httpd returns:
> <tr><td><a href="pkgin-25.5.1.tgz">pkgin-25.5.1.tgz</a><td>04-Aug-2025 
> 04:02<td align=right>70kB
> 
>    ie. there's a extra `/' at the beginning of the link in 
> simple-http-server's
>    case.
> 
> 2. This isn't handled by pkg_add(8) and friends.
> 
> File a PR for pkg_add/pkg_install too. It should handle a leading `/' too, I
> think (not sure--may have to read the RFCs some time...).

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.

In other words, this does not seem like a pkg_add bug at all.

Kind regards,
+ Kimmo

Reply via email to