base.bbclass: make do_fetch depends on PREMIRRORS MIRRORS
Quoted 21 lines · Changqing Li
From: Changqing Li<[email protected]>
When there are tarballs in local mirrorfile://,
do_fetchwill
create symlink underDL_DIR, eg:
pseudo-prebuilt-2.33.tar.xz -> /project/path/to/localmirrorA/pseudo-prebuilt-2.33.tar.xz after user update path from localmirrorA to localmirrorB, becausedo_fetchdon't depends on PREMIRRORS/MIRRORS,do_fetchwill not
be rerun, so the symlink will not update to:
pseudo-prebuilt-2.33.tar.xz -> /project/path/to/localmirrorB/pseudo-prebuilt-2.33.tar.xz then,do_upackwill failed since the tarball cannot be found.Signed-off-by Changqing Li<[email protected]>--- meta/classes-global/base.bbclass | 1 + 1 file changed, 1 insertion(+)meta/classes-global/base.bbclass +0
-0
meta/classes-global/base.bbclass do_fetch[file-checksums] ="${@bb.fetch.get_checksum_file_list(d)}" · line 145
Quoted 7 lines
meta/classes-global/base.bbclass +1
-0@@ -139,6 +139,7 @@ do_fetch[file-checksums] ="${@bb.fetch.get_checksum_file_list(d)}" do_fetch[file-checksums] += " ${@get_lic_checksum_file_list(d)}" do_fetch[prefuncs] += "fetcher_hashes_dummyfunc" do_fetch[network] = "1" +do_fetch[vardeps] += "PREMIRRORS MIRRORS" python base_do_fetch() { src_uri = (d.getVar('SRC_URI') or "").split()
This fix has a shortcoming, it will make do_fetch rerun in some unnecessary cases, eg:
PREMIRRORS changed from
PREMIRRORS = "git://.*/.* https://downloads.yoctoproject.org/mirror/sources"
to
PREMIRRORS = "git://.*/.* https://downloads.yoctoproject.org/mirror/sources \
ftp://.*/.* https://downloads.yoctoproject.org/mirror/sources ".
Any better suggestion? Thanks.
Regards
Sandy
Quoted 9 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198222):https://lists.openembedded.org/g/openembedded-core/message/198222 Mute This Topic:https://lists.openembedded.org/mt/105532159/3616873
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-