Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPK Package does not properly respond to any value for OS/ARCH #308

Open
hollowaykeanho opened this issue Mar 31, 2024 · 2 comments
Open
Assignees
Labels
Bug Case is about a glitch. Done and Pending Release Completed and staging for next release.

Comments

@hollowaykeanho
Copy link
Member

Description

When the target OS/ARCH is having any value, the IPK packager refused to package (incompatible candidate). It's likely due to mishap in safety checking.

Expected Behavior

IPK packager allows any target OS and target ARCH value.

Current Behavior

IPK packager rejects any value for both target's OS and target's ARCH.

Steps to Reproduce [COMPULSORY]

  1. build a polygot shell script that offers to any OS and any ARCH functionalities.
  2. run the CI. notice that .ipk is not packaged due to incompatible type.

Associated Data Files

No response

@hollowaykeanho hollowaykeanho added the Bug Case is about a glitch. label Mar 31, 2024
@hollowaykeanho hollowaykeanho self-assigned this Mar 31, 2024
@github-project-automation github-project-automation bot moved this to Buckets in AutomataCI Mar 31, 2024
@hollowaykeanho hollowaykeanho moved this from Buckets to v2.2.0 in AutomataCI Mar 31, 2024
@hollowaykeanho hollowaykeanho changed the title IPK Package does not properly respond to any value for OS/ARCH IPK Package does not properly respond to any value for OS/ARCH Mar 31, 2024
@hollowaykeanho
Copy link
Member Author

diff --git a/automataCI/_package-ipk_unix-any.sh b/automataCI/_package-ipk_unix-any.sh
index 193d2bd..6386a30 100644
--- a/automataCI/_package-ipk_unix-any.sh
+++ b/automataCI/_package-ipk_unix-any.sh
@@ -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
                 ;;
         *)
diff --git a/automataCI/_package-ipk_windows-any.ps1 b/automataCI/_package-ipk_windows-any.ps1
index 58de1bb..c03a189 100644
--- a/automataCI/_package-ipk_windows-any.ps1
+++ b/automataCI/_package-ipk_windows-any.ps1
@@ -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

@hollowaykeanho hollowaykeanho added the In Progress Someone is working on the case. label Apr 1, 2024
@hollowaykeanho
Copy link
Member Author

implemented in 997ee73

@hollowaykeanho hollowaykeanho added Done and Pending Release Completed and staging for next release. and removed In Progress Someone is working on the case. labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Case is about a glitch. Done and Pending Release Completed and staging for next release.
Projects
Status: v3.0.0
Development

No branches or pull requests

1 participant