mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-06 20:47:00 +02:00
build_library/update_chroot_util.sh: Ignore equery's non-zero exit status
The `list` command of `equery` will exit with status 3 if a package is not found and `--quiet` is in effect. This results in some non-fatal noise during the SDK build: INFO update_chroot: Maybe removing some hard blocks ERROR update_chroot: script called: update_chroot '--toolchain_boards=arm64-usr' '--usepkg' '--nousepkgonly' '--getbinpkg' ERROR update_chroot: Backtrace: (most recent call is last) ERROR update_chroot: file update_chroot, line 250, called: remove_hard_blocks 'sudo_e_emerge' 'equery' 'dev-python/setuptools_scm:2' ERROR update_chroot: file update_chroot_util.sh, line 49, called: get_versions_from_equery 'equery' 'dev-python/setuptools_scm' ERROR update_chroot: file update_chroot_util.sh, line 9, called: die_err_trap '"${equery_cmd}" --quiet --no-color list --format='${version} ${fullversion}' "${pkg}"' '3' ERROR update_chroot: ERROR update_chroot: Command failed: ERROR update_chroot: Command '"${equery_cmd}" --quiet --no-color list --format='${version} ${fullversion}' "${pkg}"' exited with nonzero code: 3 INFO update_chroot: No hard blockers to remove Shut the noise up. If package is not found, then there is simply nothing to do.
This commit is contained in:
parent
fb8b1371b7
commit
1d589ca9d8
@ -6,7 +6,7 @@ get_versions_from_equery() {
|
||||
local equery_cmd="${1}"
|
||||
local pkg="${2}"
|
||||
|
||||
"${equery_cmd}" --quiet --no-color list --format='${version} ${fullversion}' "${pkg}"
|
||||
"${equery_cmd}" --quiet --no-color list --format='${version} ${fullversion}' "${pkg}" || :
|
||||
}
|
||||
|
||||
filter_out_too_new() {
|
||||
|
Loading…
Reference in New Issue
Block a user