mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
extensions: standardize apt-get option placement & separate package arguments in APA
make coderabbitai happy Move the --[no-]install-recommends flag after the install subcommand and pass each package as its own argument to avoid them being interpreted as a single package name. Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -12,7 +12,7 @@ function custom_apt_repo__add_apa() {
|
|||||||
function post_armbian_repo_customize_image__install_from_apa() {
|
function post_armbian_repo_customize_image__install_from_apa() {
|
||||||
# do not install armbian recommends for minimal images
|
# do not install armbian recommends for minimal images
|
||||||
[[ "${BUILD_MINIMAL,,}" =~ ^(true|yes)$ ]] && INSTALL_RECOMMENDS="no-install-recommends" || INSTALL_RECOMMENDS="install-recommends"
|
[[ "${BUILD_MINIMAL,,}" =~ ^(true|yes)$ ]] && INSTALL_RECOMMENDS="no-install-recommends" || INSTALL_RECOMMENDS="install-recommends"
|
||||||
chroot_sdcard_apt_get --$INSTALL_RECOMMENDS install "armbian-common armbian-bsp"
|
chroot_sdcard_apt_get install --$INSTALL_RECOMMENDS armbian-common armbian-bsp
|
||||||
chroot_sdcard rm -f /etc/apt/sources.list.d/armbian-apa.list.inactive
|
chroot_sdcard rm -f /etc/apt/sources.list.d/armbian-apa.list.inactive
|
||||||
|
|
||||||
# install desktop environment if requested
|
# install desktop environment if requested
|
||||||
|
|||||||
Reference in New Issue
Block a user