gentooup: add --sequentialized parameter

This commit is contained in:
layman 2023-05-31 23:52:11 +02:00
parent 605a8adee4
commit ae416762cc

View file

@ -57,6 +57,12 @@ while [[ $# -gt 0 ]]; do
PORTAGE_UPGRADE_OPTIONS+=("--with-bdeps=y") PORTAGE_UPGRADE_OPTIONS+=("--with-bdeps=y")
shift shift
;; ;;
--sequentialized)
shift
SEQUENTIALIZED="$1"
shift
echo "execute sequentialized: $SEQUENTIALIZED"
;;
--batch) --batch)
echo "We do not ask questions" echo "We do not ask questions"
PORTAGE_ASK="" PORTAGE_ASK=""
@ -118,17 +124,24 @@ if eix -u -# sys-apps/portage > /dev/null ; then
fi fi
fi fi
myemerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world if [[ -n $SEQUENTIALIZED ]] ; then
SEQUENTIALIZED_OPTION=("--exclude" "$SEQUENTIALIZED")
fi
myemerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" "${SEQUENTIALIZED_OPTION[@]}" world
if [[ $INTERACTIVE == 1 ]] ; then if [[ $INTERACTIVE == 1 ]] ; then
dispatch-conf dispatch-conf
echo "dispatch-conf return value: $?" echo "dispatch-conf return value: $?"
myemerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world myemerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" "${SEQUENTIALIZED_OPTION[@]}" world
dispatch-conf dispatch-conf
echo "dispatch-conf return value: $?" echo "dispatch-conf return value: $?"
fi fi
if [[ -n $SEQUENTIALIZED ]] ; then
myemerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" -j1 $SEQUENTIALIZED
fi
SETS=("@preserved-rebuild") SETS=("@preserved-rebuild")
if eix -eI smart-live-rebuild &> /dev/null ; then if eix -eI smart-live-rebuild &> /dev/null ; then