armbian-build/lib/functions/general
Viacheslav Bocharov 492b96aeeb fix(apt-utils): add fallback for Ubuntu LTS releases without -updates suffix in JSON
Problem: armbian-base-files artifact for jammy fails to build because
apt_find_upstream_package_version_and_download_url() looks for 'jammy-updates'
in https://github.armbian.com/base-files.json, but only 'jammy' key exists.

Root cause:
- For Ubuntu LTS (focal, jammy), code sets package_download_release to '${RELEASE}-updates'
- JSON file from github.armbian.com only has base release keys (jammy, noble, etc)
- jq query returns null for 'jammy-updates'
- Artifact excluded from build matrix after 10 retries

Solution: Add fallback logic
- First try with '-updates' suffix (jammy-updates)
- If not found and release ends with '-updates', retry with base release (jammy)
- This allows using base release data when -updates is not available

Impact:
- Fixes jammy base-files artifact build
- Allows jammy images to build (they depend on this artifact)
- Maintains preference for -updates when available
- No impact on other releases (Debian, non-LTS Ubuntu)
2025-12-22 21:26:37 +01:00
..
apt-utils.sh fix(apt-utils): add fallback for Ubuntu LTS releases without -updates suffix in JSON 2025-12-22 21:26:37 +01:00
bat-cat.sh tools: Bump BATCAT_VERSION from 0.26.0 to 0.26.1 (#9083) 2025-12-17 18:34:07 +02:00
chroot-helpers.sh add recursion when umounting /sys 2025-08-16 17:44:15 +02:00
cleaning.sh cleaning: stop lying about CLEAN_LEVEL=debs -- now it simply deletes every .deb in the folder (same as =alldebs) 2023-03-31 09:12:44 +02:00
countdown.sh Add / modify (c) in bash scripts (#4922) 2023-03-09 18:30:40 +01:00
deprecations.sh stop the build if LIB_TAG is set at all; some users expect it to work while it doesn't 2023-03-17 08:32:11 +01:00
downloads.sh Add / modify (c) in bash scripts (#4922) 2023-03-09 18:30:40 +01:00
extensions.sh fix(build): eliminate the error message when no extension found in a folder in building 2025-09-21 19:45:13 +02:00
git-ref2info.sh kenrel makefile: use Makefile url from ghproxy github repo for mainline kernel if GITHUB_MIRROR is set to ghproxy 2025-09-11 11:17:55 +08:00
git.sh Fixing updating submodule 2025-11-18 13:08:18 +01:00
github-actions.sh Fix check CI && GITHUB_ACTIONS for GITHUB_OUTPUT to only GITHUB_ACTIONS 2024-07-04 21:35:26 +02:00
hash-files.sh bsp-cli/BETA: fixes for bsp-cli bootscript hashing; don't normalize bootscript vars; debugging for BETA=yes/no stuff 2023-05-25 19:30:40 +02:00
memoize-cached.sh kernel/memoize: allow customizing memoize's default TTL of 3600 seconds; allow customizing kernel TTL via KERNEL_GIT_CACHE_TTL 2023-09-29 14:25:58 +02:00
oci-oras.sh build machinery - replace wget with curl cuz reasons 2025-10-17 19:33:20 +02:00
python-tools.sh python3: do not rely on hostdeps python3-pip nor python3-dev; deploy pip via get-pip.py 2025-02-24 09:21:53 +01:00
retry.sh logging/retries: curb CI/GHA warning emitted _for each retry_ 2023-05-15 17:43:25 +02:00
shellcheck.sh build machinery - replace wget with curl cuz reasons 2025-10-17 19:33:20 +02:00