mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
*: disable reinstalling rebuilt binaries with --usepkgonly
When --usepkgonly is mixed with the right update flags it will re-install any binary packages that have a newer build. Since the full set of SDK and board packages are rebuilt quite often this leads to excessive reinstalling.
This commit is contained in:
parent
5411bf574e
commit
9b00ea5495
@ -143,7 +143,7 @@ if [[ "${FLAGS_usepkg}" -eq "${FLAGS_TRUE}" ]]; then
|
||||
# so as to avoid unnecessary differences between source
|
||||
# and binary builds except for --usepkgonly for speed.
|
||||
if [[ "${FLAGS_usepkgonly}" -eq "${FLAGS_TRUE}" ]]; then
|
||||
EMERGE_FLAGS+=( --usepkgonly )
|
||||
EMERGE_FLAGS+=( --usepkgonly --rebuilt-binaries n )
|
||||
else
|
||||
EMERGE_FLAGS+=( --usepkg --with-bdeps y )
|
||||
|
||||
|
@ -301,12 +301,12 @@ if [[ ${FLAGS_regen_configs} -eq ${FLAGS_FALSE} ]]; then
|
||||
"${FLAGS_getbinpkg}" -eq "${FLAGS_TRUE}" ]]
|
||||
then
|
||||
if [[ "${FLAGS_usepkgonly}" -eq "${FLAGS_TRUE}" ]]; then
|
||||
EMERGE_FLAGS+=" --usepkgonly"
|
||||
EMERGE_FLAGS+=" --usepkgonly --rebuilt-binaries n"
|
||||
else
|
||||
EMERGE_FLAGS+=" --usepkg"
|
||||
fi
|
||||
EMERGE_FLAGS+=" --getbinpkg"
|
||||
EMERGE_TOOLCHAIN_FLAGS+=" --usepkgonly --getbinpkg"
|
||||
EMERGE_TOOLCHAIN_FLAGS+=" --usepkgonly --getbinpkg --rebuilt-binaries n"
|
||||
else
|
||||
# When binary packages are disabled we need to make sure the cross
|
||||
# sysroot includes any build dependencies for the toolchain.
|
||||
|
@ -181,7 +181,7 @@ REBUILD_FLAGS=""
|
||||
if [ "${FLAGS_usepkg}" -eq "${FLAGS_TRUE}" ]; then
|
||||
EMERGE_FLAGS="${EMERGE_FLAGS} --usepkg"
|
||||
if [[ "${FLAGS_usepkgonly}" -eq "${FLAGS_TRUE}" ]]; then
|
||||
EMERGE_FLAGS+=" --usepkgonly"
|
||||
EMERGE_FLAGS+=" --usepkgonly --rebuilt-binaries n"
|
||||
fi
|
||||
if [ "${FLAGS_getbinpkg}" -eq "${FLAGS_TRUE}" ]; then
|
||||
EMERGE_FLAGS="${EMERGE_FLAGS} --getbinpkg"
|
||||
|
Loading…
Reference in New Issue
Block a user