[Bug]: jp command in apt-utils.sh mis parsed base-files.json

Description

  1.  

    1.  

      1. What happened?

when the system fetches the base-files.json files, and uses the jp command to parse it, it fails with a syntax error. resulting in the system believing the base-files was not downloaded.

  1.  

    1.  

      1. How to reproduce?

build such that the base-files is downloaded, i.e. clear all cache and have a situation that it is needed.

offending line in the code:
`found_package_filename=$(jq -r .[\"${package_download_release}\"].${ARCH} $package_info_download_url_file)`
fixed line:
`found_package_filename=$(jq -r .\"${package_download_release}\".\"${ARCH}\" $package_info_download_url_file)`

  1.  

    1.  

      1. Branch

main (main development branch)

  1.  

    1.  

      1. On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

  1.  

    1.  

      1. Are you building on Windows WSL2?

  • [x] Yes, my Ubuntu/Debian/OtherOS is running on WSL2

  1.  

    1.  

      1. Relevant log URL

No response

  1.  

    1.  

      1. Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

Raised by: https://github.com/awinner1

https://github.com/armbian/build/issues/7886

Checklist

hide

Activity

Show:

Details

Assignee

Reporter

Priority

Created February 27, 2025 at 6:18 PM
Updated February 27, 2025 at 6:18 PM