Skip to content

Commit dd67ebe

Browse files
authored
real: promote 22.7.0 (#106)
1 parent ed41632 commit dd67ebe

File tree

5 files changed

+27
-16
lines changed

5 files changed

+27
-16
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [22.7.0]
9+
10+
### Added
11+
12+
- all
13+
- CachyOS support
14+
815
## [22.6.4]
916

1017
### Added

bashlib64.bash

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ builtin unset MAILPATH
9999

100100
# shellcheck disable=SC2034
101101
{
102-
declare BL64_VERSION='22.6.4'
102+
declare BL64_VERSION='22.7.0'
103103

104104
#
105105
# Imported generic shell standard variables
@@ -823,7 +823,7 @@ function bl64_lib_script_minver_check() {
823823

824824
# shellcheck disable=SC2034
825825
{
826-
declare BL64_OS_VERSION='5.9.1'
826+
declare BL64_OS_VERSION='5.10.0'
827827

828828
declare BL64_OS_MODULE='0'
829829

@@ -4757,6 +4757,10 @@ function _bl64_os_get_distro_from_os_release() {
47574757

47584758
bl64_dbg_lib_show_info 'set BL_OS_DISTRO'
47594759
case "${ID^^}" in
4760+
'ARCH' | 'CACHYOS')
4761+
BL64_OS_DISTRO="${BL64_OS_ARC}-${version_normalized}"
4762+
BL64_OS_FLAVOR="$BL64_OS_FLAVOR_ARCH"
4763+
;;
47604764
'ALMALINUX')
47614765
BL64_OS_DISTRO="${BL64_OS_ALM}-${version_normalized}"
47624766
BL64_OS_FLAVOR="$BL64_OS_FLAVOR_REDHAT"
@@ -4769,10 +4773,6 @@ function _bl64_os_get_distro_from_os_release() {
47694773
BL64_OS_DISTRO="${BL64_OS_AMZ}-${version_normalized}"
47704774
BL64_OS_FLAVOR="$BL64_OS_FLAVOR_FEDORA"
47714775
;;
4772-
'ARCH')
4773-
BL64_OS_DISTRO="${BL64_OS_ARC}-${version_normalized}"
4774-
BL64_OS_FLAVOR="$BL64_OS_FLAVOR_ARCH"
4775-
;;
47764776
'CENTOS')
47774777
BL64_OS_DISTRO="${BL64_OS_CNT}-${version_normalized}"
47784778
BL64_OS_FLAVOR="$BL64_OS_FLAVOR_REDHAT"
@@ -4836,12 +4836,14 @@ function _bl64_os_release_load() {
48364836

48374837
function _bl64_os_release_normalize() {
48384838
bl64_dbg_lib_show_function "$@"
4839-
local version_raw="$1"
4839+
local version_raw="${1:-}"
48404840
local version_normalized=''
48414841
local version_pattern_single='^[0-9]+$'
48424842
local version_pattern_major_minor='^[0-9]+\.[0-9]+$'
48434843
local version_pattern_semver='^[0-9]+\.[0-9]+\.[0-9]+$'
48444844

4845+
bl64_check_parameter 'version_raw' || return $?
4846+
48454847
bl64_dbg_lib_show_comments 'normalize OS version to match X.Y'
48464848
if [[ "$version_raw" =~ $version_pattern_single ]]; then
48474849
bl64_dbg_lib_show_info "version_pattern_single: ${version_pattern_single}"
@@ -4851,7 +4853,7 @@ function _bl64_os_release_normalize() {
48514853
version_normalized="${version_raw}"
48524854
elif [[ "$version_raw" =~ $version_pattern_semver ]]; then
48534855
bl64_dbg_lib_show_info "version_pattern_semver: ${version_pattern_semver}"
4854-
if [[ "${ID^^}" == 'ARCH' ]]; then
4856+
if [[ "${ID^^}" =~ ^(ARCH|CACHYOS)$ ]]; then
48554857
bl64_dbg_lib_show_comments 'convert rolling version YYYYMMDD to YYYY.MM'
48564858
version_normalized="${version_raw:0:4}.${version_raw:4:2}"
48574859
else

src/bl64-lib-env.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# shellcheck disable=SC2034
66
{
7-
declare BL64_VERSION='22.6.4'
7+
declare BL64_VERSION='22.7.0'
88

99
#
1010
# Imported generic shell standard variables

src/bl64-os-env.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# shellcheck disable=SC2034
66
{
7-
declare BL64_OS_VERSION='5.9.1'
7+
declare BL64_OS_VERSION='5.10.0'
88

99
declare BL64_OS_MODULE='0'
1010

src/bl64-os-setup.bash

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ function _bl64_os_get_distro_from_os_release() {
308308

309309
bl64_dbg_lib_show_info 'set BL_OS_DISTRO'
310310
case "${ID^^}" in
311+
'ARCH' | 'CACHYOS')
312+
BL64_OS_DISTRO="${BL64_OS_ARC}-${version_normalized}"
313+
BL64_OS_FLAVOR="$BL64_OS_FLAVOR_ARCH"
314+
;;
311315
'ALMALINUX')
312316
BL64_OS_DISTRO="${BL64_OS_ALM}-${version_normalized}"
313317
BL64_OS_FLAVOR="$BL64_OS_FLAVOR_REDHAT"
@@ -320,10 +324,6 @@ function _bl64_os_get_distro_from_os_release() {
320324
BL64_OS_DISTRO="${BL64_OS_AMZ}-${version_normalized}"
321325
BL64_OS_FLAVOR="$BL64_OS_FLAVOR_FEDORA"
322326
;;
323-
'ARCH')
324-
BL64_OS_DISTRO="${BL64_OS_ARC}-${version_normalized}"
325-
BL64_OS_FLAVOR="$BL64_OS_FLAVOR_ARCH"
326-
;;
327327
'CENTOS')
328328
BL64_OS_DISTRO="${BL64_OS_CNT}-${version_normalized}"
329329
BL64_OS_FLAVOR="$BL64_OS_FLAVOR_REDHAT"
@@ -387,12 +387,14 @@ function _bl64_os_release_load() {
387387

388388
function _bl64_os_release_normalize() {
389389
bl64_dbg_lib_show_function "$@"
390-
local version_raw="$1"
390+
local version_raw="${1:-}"
391391
local version_normalized=''
392392
local version_pattern_single='^[0-9]+$'
393393
local version_pattern_major_minor='^[0-9]+\.[0-9]+$'
394394
local version_pattern_semver='^[0-9]+\.[0-9]+\.[0-9]+$'
395395

396+
bl64_check_parameter 'version_raw' || return $?
397+
396398
bl64_dbg_lib_show_comments 'normalize OS version to match X.Y'
397399
if [[ "$version_raw" =~ $version_pattern_single ]]; then
398400
bl64_dbg_lib_show_info "version_pattern_single: ${version_pattern_single}"
@@ -402,7 +404,7 @@ function _bl64_os_release_normalize() {
402404
version_normalized="${version_raw}"
403405
elif [[ "$version_raw" =~ $version_pattern_semver ]]; then
404406
bl64_dbg_lib_show_info "version_pattern_semver: ${version_pattern_semver}"
405-
if [[ "${ID^^}" == 'ARCH' ]]; then
407+
if [[ "${ID^^}" =~ ^(ARCH|CACHYOS)$ ]]; then
406408
bl64_dbg_lib_show_comments 'convert rolling version YYYYMMDD to YYYY.MM'
407409
version_normalized="${version_raw:0:4}.${version_raw:4:2}"
408410
else

0 commit comments

Comments
 (0)