On 2017/03/01 23:39, Frederic Cambus wrote: > Following tj@ and sthen@ suggestions, use %c and %a instead of > hardcoding strings, and switch to http instead of https. > > Index: share/man/man7/packages.7 > =================================================================== > RCS file: /cvs/src/share/man/man7/packages.7,v > retrieving revision 1.40 > diff -u -p -r1.40 packages.7 > --- share/man/man7/packages.7 24 Oct 2015 08:44:49 -0000 1.40 > +++ share/man/man7/packages.7 1 Mar 2017 14:28:07 -0000 > @@ -240,7 +240,7 @@ are supported: pointing > .Ev PKG_PATH > to a distant package repository, e.g., > .Bd -literal -offset 1n > -# export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/5.2/packages/i386/ > +# export PKG_PATH=http://ftp.openbsd.org/pub/OpenBSD/%c/packages/%a/ > .Ed > .Pp > will let
Hmm - if you're going to trust autodetection of snapshots vs release anyway (as you do with %c), you could simply "export PKG_PATH=ftp.openbsd.org" ... Not sure which is better though.