Skip to content

Commit

Permalink
automataCI: ensured ipk packager reacts to 'any' os and arch properly
Browse files Browse the repository at this point in the history
The 'any' value for both target os and target arch are not properly
handled for ipk packager. This is a bug due to the misplaced response
code handler. Hence, let's correct it.

This patch ensures ipk packager reacts to 'any' os and arch properly
in automataCI/ directory.

Co-authored-by: Shuralyov, Jean <jean.shuralyov@proton.me>
Co-authored-by: Galyna, Cory <cory.galyna@gmail.com>
Co-authored-by: (Holloway) Chew, Kean Ho <hollowaykeanho@gmail.com>
Signed-off-by: (Holloway) Chew, Kean Ho <hollowaykeanho@gmail.com>
  • Loading branch information
3 people committed Apr 2, 2024
1 parent f65612f commit 0b1c6af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions automataCI/_package-ipk_unix-any.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ PACKAGE_Run_IPK() {
I18N_Check_Availability "IPK"
IPK_Is_Available "$_target_os" "$_target_arch"
case $? in
2|3)
2)
I18N_Check_Incompatible_Skipped
return 0
;;
0)
0|3)
# accepted
;;
*)
Expand Down
4 changes: 2 additions & 2 deletions automataCI/_package-ipk_windows-any.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ function PACKAGE-Run-IPK {
$null = I18N-Check-Availability "IPK"
$___process = IPK-Is-Available "${_target_os}" "${_target_arch}"
switch ($___process) {
{ $_ -in 2, 3 } {
2 {
$null = I18N-Check-Incompatible-Skipped
return 0
} 0 {
} { $_ -in 0, 3 } {
# accepted
} Default {
$null = I18N-Check-Failed
Expand Down

0 comments on commit 0b1c6af

Please sign in to comment.