Yue Tao 680aab905a debrepack.py: support CENGN
Introduce a new environment variable CENGN_STRATEGY to control download
sources, 4 choices:

cengn: download from CENGN only
cengn_first: download from CENGN first, then upstream
upstream: download from upstream only
upsream_first: download from upstream first, then CENGN

default value is "cengn_first"

download_mirror_upstream() return the right url based on the
CENGN_STRATEGY. url_to_cengn() converts an upstream url to CENGN url.

Test Plan:

Pass: verify download -s with "upstream"
Pass: verify download -s with "cengn"
Pass: verify download -s with "cengn_first", if set wrong CENGN url,
download from upstream
Pass: verify download -s with "upstream_first", if set wrong upstream
url, download from CENGN

Story: 2008846
Task: 43138

Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I8a1f7cf956ac0da9684aa593870ceba322272531
2022-02-10 09:53:38 +08:00
2022-02-10 09:53:38 +08:00
2021-06-08 15:44:00 -04:00
2019-04-19 19:52:37 +00:00
2018-06-01 07:45:23 -07:00
2021-06-29 11:20:52 -04:00
Description
StarlingX build source tree root
12 MiB
Languages
Python 62%
Shell 36.9%
BitBake 0.6%
Dockerfile 0.5%