mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
own-mirrors: add crate
Support downloading crate files from a mirror at SOURCE_MIRROR_URL. (From OE-Core rev: d1edc5882955508827a19c4f507d97dca398f3fa) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
90cc9c24cd
commit
96a316068f
@@ -11,4 +11,5 @@ https?://.*/.* ${SOURCE_MIRROR_URL} \
|
||||
ftp://.*/.* ${SOURCE_MIRROR_URL} \
|
||||
npm://.*/?.* ${SOURCE_MIRROR_URL} \
|
||||
s3://.*/.* ${SOURCE_MIRROR_URL} \
|
||||
crate://.*/.* ${SOURCE_MIRROR_URL} \
|
||||
"
|
||||
|
||||
@@ -859,7 +859,7 @@ def check_sanity_everybuild(status, d):
|
||||
mirror_vars = ['MIRRORS', 'PREMIRRORS', 'SSTATE_MIRRORS']
|
||||
protocols = ['http', 'ftp', 'file', 'https', \
|
||||
'git', 'gitsm', 'hg', 'osc', 'p4', 'svn', \
|
||||
'bzr', 'cvs', 'npm', 'sftp', 'ssh', 's3', 'az', 'ftps']
|
||||
'bzr', 'cvs', 'npm', 'sftp', 'ssh', 's3', 'az', 'ftps', 'crate']
|
||||
for mirror_var in mirror_vars:
|
||||
mirrors = (d.getVar(mirror_var) or '').replace('\\n', ' ').split()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user