mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-24 12:01:59 +01:00
build_packages: be less aggressive about rebuilding packages
The --rebuild-if-unbuilt emerge option will recompile packages if any build-time dependencies changed. This can be a useful safety to make sure applications get re-linked and so forth. However recent versions of portage have grown better defaults for choosing when to rebuild so lets turn the build_packages flag around and leave emerge to do its default behavior and see if that is sufficiently safe.
This commit is contained in:
parent
5d037e2840
commit
28c3c3def3
@ -49,7 +49,7 @@ DEFINE_string accept_licenses "" \
|
||||
"Licenses to append to the accept list."
|
||||
DEFINE_integer jobs "${NUM_JOBS}" \
|
||||
"How many packages to build in parallel at maximum."
|
||||
DEFINE_boolean norebuild "${FLAGS_FALSE}" \
|
||||
DEFINE_boolean rebuild "${FLAGS_FALSE}" \
|
||||
"Don't automatically rebuild dependencies."
|
||||
DEFINE_boolean skip_chroot_upgrade "${FLAGS_FALSE}" \
|
||||
"Don't run the chroot upgrade automatically; use with care."
|
||||
@ -150,7 +150,7 @@ if [[ "${FLAGS_jobs}" -ne -1 ]]; then
|
||||
EMERGE_FLAGS+=( --jobs=${FLAGS_jobs} )
|
||||
fi
|
||||
|
||||
if [[ "${FLAGS_norebuild}" -eq "${FLAGS_FALSE}" ]]; then
|
||||
if [[ "${FLAGS_rebuild}" -eq "${FLAGS_TRUE}" ]]; then
|
||||
EMERGE_FLAGS+=( --rebuild-if-unbuilt )
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user