On Thu, Apr 16, 2015 at 11:19:39AM BST, Stuart Henderson wrote:
> On 2015/04/16 12:03, Sebastian Reitenbach wrote:
> > Am 4/15/2015 um 11:33 PM schrieb Marc Espie:
> > >On Wed, Apr 15, 2015 at 08:39:15PM +0200, Sebastian Reitenbach
> > >wrote:
> > >>I've seen at least -beta versions short before release locks. Not
> > >>sure if there are -alpha too? Those should be treated same way as
> > >>snapshots, I think.
> > >This is the exact same logic that's in fw_update, actually... so
> > >if one is wrong, the other one would be too ?
> >
> > Well, when running pkg_add on a host that has version like X.X-beta,
> > pkg_add will expand %v to /X.X/ in the path. Usually at those time
> > frames where there are -beta versions, such directories aren't on
> > the mirrors (yet), as far as I can see, pkg_add will fail then.
> > Just wondering, if is this intended? I also might be wrong ;)
>
> There is also the period when the release version is "5.7" but before
> packages/firmware are available on mirrors in the 5.7 directory (and
> actually this usually lasts for longer than the "beta" phase).
>
> I don't have an answer for this, but it seems out-of-scope of what is
> being done here, as people who know they will always be using
> snapshots can just insert the word "snapshots" in the URL themselves
> rather than using this variable.
That's what I've been doing in my {install,upgrade}.conf after finding
it out the hard way[0].
[0] https://marc.info/?l=openbsd-tech&m=142554965809503&w=2
Cheers,
Raf