diff options
-rwxr-xr-x | portage-update.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/portage-update.sh b/portage-update.sh index 8c31c3d..1ef417f 100755 --- a/portage-update.sh +++ b/portage-update.sh @@ -22,6 +22,8 @@ do ;; --skip-depclean) export SKIP_DEPCLEAN="true" # In case we don't want to do an "emerge --depclean" ;; + --skip-preserved-rebuild) export SKIP_PRESERVED_REBUILD="true" # In case we don't want to do an "emerge @preserved-rebuild" + ;; --*) echo "bad argument '$1'" ; exit 1 ;; *) echo "unexpected argument '$1'" ; exit 1 @@ -46,9 +48,11 @@ if [ -z ${SKIP_DEPCLEAN+x} ]; then emerge -av --depclean || exit 1 fi -# Rebuild any packages known to be built against old/missing packages -echo 'emerge -av --keep-going @preserved-rebuild' -emerge -av --keep-going @preserved-rebuild || exit 1 +# Rebuild any packages known to be built against old/missing packages, unless skipped +if [ -z ${SKIP_PRESERVED_REBUILD+x} ]; then + echo 'emerge -av --keep-going @preserved-rebuild' + emerge -av --keep-going @preserved-rebuild || exit 1 +fi # Search for any remaining packages built against old/missing packages echo 'revdep-rebuild -p' |