AWS credentials can be provided in environment variables in order for s3Session to access a private bucket.
When credentials are set as environment variables and passed with BB_ENV_EXTRAWHITE (or BB_ENV_PASSTHROUGH_ADDITIONS) they are not taken into account and do not appear in environment when downloads_mirror_update or sstate_mirror_update are called.
This commit move the fix_env function from botos3fetcher.py into a dedicated file in order to be used in both botos3fetcher.py and mirror_updates.bbclass
AWS credentials can be provided in environment variables in order for s3Session to access a private bucket. When credentials are set as environment variables and passed with
BB_ENV_EXTRAWHITE
(orBB_ENV_PASSTHROUGH_ADDITIONS
) they are not taken into account and do not appear in environment whendownloads_mirror_update
orsstate_mirror_update
are called.This commit move the
fix_env
function frombotos3fetcher.py
into a dedicated file in order to be used in bothbotos3fetcher.py
andmirror_updates.bbclass