From 0c250da9d65a65a105a613dbbdb414f7ee42a9f2 Mon Sep 17 00:00:00 2001 From: bl64_vcs_run_git Date: Fri, 21 Nov 2025 09:11:19 +0100 Subject: [PATCH] real: promote 22.7.0 --- CHANGELOG.md | 7 +++++++ bashlib64.bash | 18 ++++++++++-------- src/bl64-lib-env.bash | 2 +- src/bl64-os-env.bash | 2 +- src/bl64-os-setup.bash | 14 ++++++++------ 5 files changed, 27 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8889cb3a..e6462019 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [22.7.0] + +### Added + +- all + - CachyOS support + ## [22.6.4] ### Added diff --git a/bashlib64.bash b/bashlib64.bash index a9578843..3cf5145b 100755 --- a/bashlib64.bash +++ b/bashlib64.bash @@ -99,7 +99,7 @@ builtin unset MAILPATH # shellcheck disable=SC2034 { - declare BL64_VERSION='22.6.4' + declare BL64_VERSION='22.7.0' # # Imported generic shell standard variables @@ -823,7 +823,7 @@ function bl64_lib_script_minver_check() { # shellcheck disable=SC2034 { - declare BL64_OS_VERSION='5.9.1' + declare BL64_OS_VERSION='5.10.0' declare BL64_OS_MODULE='0' @@ -4757,6 +4757,10 @@ function _bl64_os_get_distro_from_os_release() { bl64_dbg_lib_show_info 'set BL_OS_DISTRO' case "${ID^^}" in + 'ARCH' | 'CACHYOS') + BL64_OS_DISTRO="${BL64_OS_ARC}-${version_normalized}" + BL64_OS_FLAVOR="$BL64_OS_FLAVOR_ARCH" + ;; 'ALMALINUX') BL64_OS_DISTRO="${BL64_OS_ALM}-${version_normalized}" BL64_OS_FLAVOR="$BL64_OS_FLAVOR_REDHAT" @@ -4769,10 +4773,6 @@ function _bl64_os_get_distro_from_os_release() { BL64_OS_DISTRO="${BL64_OS_AMZ}-${version_normalized}" BL64_OS_FLAVOR="$BL64_OS_FLAVOR_FEDORA" ;; - 'ARCH') - BL64_OS_DISTRO="${BL64_OS_ARC}-${version_normalized}" - BL64_OS_FLAVOR="$BL64_OS_FLAVOR_ARCH" - ;; 'CENTOS') BL64_OS_DISTRO="${BL64_OS_CNT}-${version_normalized}" BL64_OS_FLAVOR="$BL64_OS_FLAVOR_REDHAT" @@ -4836,12 +4836,14 @@ function _bl64_os_release_load() { function _bl64_os_release_normalize() { bl64_dbg_lib_show_function "$@" - local version_raw="$1" + local version_raw="${1:-}" local version_normalized='' local version_pattern_single='^[0-9]+$' local version_pattern_major_minor='^[0-9]+\.[0-9]+$' local version_pattern_semver='^[0-9]+\.[0-9]+\.[0-9]+$' + bl64_check_parameter 'version_raw' || return $? + bl64_dbg_lib_show_comments 'normalize OS version to match X.Y' if [[ "$version_raw" =~ $version_pattern_single ]]; then bl64_dbg_lib_show_info "version_pattern_single: ${version_pattern_single}" @@ -4851,7 +4853,7 @@ function _bl64_os_release_normalize() { version_normalized="${version_raw}" elif [[ "$version_raw" =~ $version_pattern_semver ]]; then bl64_dbg_lib_show_info "version_pattern_semver: ${version_pattern_semver}" - if [[ "${ID^^}" == 'ARCH' ]]; then + if [[ "${ID^^}" =~ ^(ARCH|CACHYOS)$ ]]; then bl64_dbg_lib_show_comments 'convert rolling version YYYYMMDD to YYYY.MM' version_normalized="${version_raw:0:4}.${version_raw:4:2}" else diff --git a/src/bl64-lib-env.bash b/src/bl64-lib-env.bash index dd3700a9..30810a2d 100755 --- a/src/bl64-lib-env.bash +++ b/src/bl64-lib-env.bash @@ -4,7 +4,7 @@ # shellcheck disable=SC2034 { - declare BL64_VERSION='22.6.4' + declare BL64_VERSION='22.7.0' # # Imported generic shell standard variables diff --git a/src/bl64-os-env.bash b/src/bl64-os-env.bash index f5d01b5a..1dd7d4d3 100755 --- a/src/bl64-os-env.bash +++ b/src/bl64-os-env.bash @@ -4,7 +4,7 @@ # shellcheck disable=SC2034 { - declare BL64_OS_VERSION='5.9.1' + declare BL64_OS_VERSION='5.10.0' declare BL64_OS_MODULE='0' diff --git a/src/bl64-os-setup.bash b/src/bl64-os-setup.bash index d1cc96d9..cf001e6e 100755 --- a/src/bl64-os-setup.bash +++ b/src/bl64-os-setup.bash @@ -308,6 +308,10 @@ function _bl64_os_get_distro_from_os_release() { bl64_dbg_lib_show_info 'set BL_OS_DISTRO' case "${ID^^}" in + 'ARCH' | 'CACHYOS') + BL64_OS_DISTRO="${BL64_OS_ARC}-${version_normalized}" + BL64_OS_FLAVOR="$BL64_OS_FLAVOR_ARCH" + ;; 'ALMALINUX') BL64_OS_DISTRO="${BL64_OS_ALM}-${version_normalized}" BL64_OS_FLAVOR="$BL64_OS_FLAVOR_REDHAT" @@ -320,10 +324,6 @@ function _bl64_os_get_distro_from_os_release() { BL64_OS_DISTRO="${BL64_OS_AMZ}-${version_normalized}" BL64_OS_FLAVOR="$BL64_OS_FLAVOR_FEDORA" ;; - 'ARCH') - BL64_OS_DISTRO="${BL64_OS_ARC}-${version_normalized}" - BL64_OS_FLAVOR="$BL64_OS_FLAVOR_ARCH" - ;; 'CENTOS') BL64_OS_DISTRO="${BL64_OS_CNT}-${version_normalized}" BL64_OS_FLAVOR="$BL64_OS_FLAVOR_REDHAT" @@ -387,12 +387,14 @@ function _bl64_os_release_load() { function _bl64_os_release_normalize() { bl64_dbg_lib_show_function "$@" - local version_raw="$1" + local version_raw="${1:-}" local version_normalized='' local version_pattern_single='^[0-9]+$' local version_pattern_major_minor='^[0-9]+\.[0-9]+$' local version_pattern_semver='^[0-9]+\.[0-9]+\.[0-9]+$' + bl64_check_parameter 'version_raw' || return $? + bl64_dbg_lib_show_comments 'normalize OS version to match X.Y' if [[ "$version_raw" =~ $version_pattern_single ]]; then bl64_dbg_lib_show_info "version_pattern_single: ${version_pattern_single}" @@ -402,7 +404,7 @@ function _bl64_os_release_normalize() { version_normalized="${version_raw}" elif [[ "$version_raw" =~ $version_pattern_semver ]]; then bl64_dbg_lib_show_info "version_pattern_semver: ${version_pattern_semver}" - if [[ "${ID^^}" == 'ARCH' ]]; then + if [[ "${ID^^}" =~ ^(ARCH|CACHYOS)$ ]]; then bl64_dbg_lib_show_comments 'convert rolling version YYYYMMDD to YYYY.MM' version_normalized="${version_raw:0:4}.${version_raw:4:2}" else