With BB_FETCH_PREMIRRORONLY set: If there is no tarball of the git repo on the premirror, then a normal download from upstream is performed. IF there is an outdated git tarball that does not contain the wanted revision on the premirror, then upstream is added as branch and fetched from. Neither of these should happen with BB_FETCH_PREMIRRORONLY, both cases should result in fetch failures just as happens for tarballs. This bug makes it pretty hard to ensure that a local premirror contains all the sources so that images can still be rebuilt years or decades later.
The email: From: richard.purdie@linuxfoundation.org To: Robert Yang <liezhi.yang@windriver.com>, bitbake-devel@lists.openembedded.org Subject: Re: [bitbake-devel] [PATCH 2/2] fetch2: Unify BB_FETCH_PREMIRRORONLY Date: Fri, 22 Mar 2019 11:18:38 +0000 has some further background on this issue, its one we never quite got resolved.
Created attachment 4533 [details] package.json
Sorry, this got attached to the wrong issue.
Armin can't get to this so I've asked Robert to do so for M4.
This should be fixed in: https://git.openembedded.org/bitbake/commit/?id=b47ecab3e3aad5c5c376ec023aa82a51aa0f3b86 In case if expected revision is missed in the mirror and BB_FETCH_PREMIRRORONLY is set NetworkAccess exception is raised