I think the better way is mimicking the pkg fetching https://pkg.freebsd.org/FreeBSD:13:amd64/latest/packagesite.txz and parse the content in it.
There are some discussions at https://github.com/FreshPorts/freshports/issues/142 which might be useful. Li-Wen On Tue, Jul 14, 2020 at 5:30 PM Ronald Klop <ronald-li...@klop.ws> wrote: > > Hi, > > I had a nice script which periodically checks if there are updates for the > pkgs. > Since last night it gets a "Forbidden" status asking for the directory > listing. > > Is this on purpose? > And what is the best way to check if there are updates as a non-root user? > > Regards, > Ronald. > > > Van: Cron Daemon <ronald@rpi3> > Datum: dinsdag, 14 juli 2020 09:55 > Aan: ron...@klop.ws > Onderwerp: Cron <ronald@rpi3> bin/verify_site.sh "amd64_pkgs" > "http://pkg.freebsd.org/FreeBSD:13:amd64/" > > > > fetch: http://pkg.freebsd.org/FreeBSD:13:amd64/: Forbidden > > > > > > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" _______________________________________________ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"