OE4T / tegra-demo-distro

Reference/demonstration distro for meta-tegra
MIT License
73 stars 74 forks source link

mirror_update.bbclass: add fix environment function to get AWS credentials #267

Closed PercevalSA closed 1 year ago

PercevalSA commented 1 year ago

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