On Thu, 2020-08-06 at 15:31 -0700, Scott Branden wrote:
> > diff --git a/meta/classes/uninative.bbclass
> > b/meta/classes/uninative.bbclass
> > index 70799bbf6d..99072e1326 100644
> > --- a/meta/classes/uninative.bbclass
> > +++ b/meta/classes/uninative.bbclass
> > @@ -56,9 +56,14 @@ python uninative_event_fetchloader() {
> >              # Our games with path manipulation of DL_DIR mean
> > standard PREMIRRORS don't work
> >              # and we can't easily put 'chksum' into the url path
> > from a url parameter with
> >              # the current fetcher url handling
> > -            ownmirror = d.getVar('SOURCE_MIRROR_URL')
> > -            if ownmirror:
> > -                localdata.appendVar("PREMIRRORS", "
> > ${UNINATIVE_URL}${UNINATIVE_TARBALL}
> > ${SOURCE_MIRROR_URL}/uninative/%s/${UNINATIVE_TARBALL}" % chksum)
> > +            premirrors =
> > bb.fetch2.mirror_from_string(localdata.getVar("PREMIRRORS"))
> > +            for line in premirrors:
> > +                try:
> > +                    (find, replace) = line
> > +                except ValueError:
> > +                    continue
> > +                if find.startswith("http"):
> > +                    localdata.appendVar("PREMIRRORS", "
> > ${UNINATIVE_URL}${UNINATIVE_TARBALL}
> > %s/uninative/%s/${UNINATIVE_TARBALL}" % (replace, chksum))
> >  
> >              srcuri =
> > d.expand("${UNINATIVE_URL}${UNINATIVE_TARBALL};sha256sum=%s" %
> > chksum)
> >              bb.note("Fetching uninative binary shim from %s" %
> > srcuri)
>
> Note is missleading as it is going to fetch from PREMIRRORS.
>
> > Hopefully that handles this case more generically.
> Yes, this works.  uninative is now fetched from the PREMIRRORS like
> all the other downloads even though it prints the note about Fetching
> uninative binary shim from the URL.

Thanks, I've tweaked the patch to improve the note and submitted it.
Good to get to the bottom of this!

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50241): https://lists.yoctoproject.org/g/yocto/message/50241
Mute This Topic: https://lists.yoctoproject.org/mt/74157229/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to