gentooup: add --sequentialized parameter
This commit is contained in:
parent
605a8adee4
commit
ae416762cc
1 changed files with 15 additions and 2 deletions
17
gentooup.sh
17
gentooup.sh
|
@ -57,6 +57,12 @@ while [[ $# -gt 0 ]]; do
|
|||
PORTAGE_UPGRADE_OPTIONS+=("--with-bdeps=y")
|
||||
shift
|
||||
;;
|
||||
--sequentialized)
|
||||
shift
|
||||
SEQUENTIALIZED="$1"
|
||||
shift
|
||||
echo "execute sequentialized: $SEQUENTIALIZED"
|
||||
;;
|
||||
--batch)
|
||||
echo "We do not ask questions"
|
||||
PORTAGE_ASK=""
|
||||
|
@ -118,17 +124,24 @@ if eix -u -# sys-apps/portage > /dev/null ; then
|
|||
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
|
||||
dispatch-conf
|
||||
echo "dispatch-conf return value: $?"
|
||||
|
||||
myemerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" world
|
||||
myemerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" "${SEQUENTIALIZED_OPTION[@]}" world
|
||||
|
||||
dispatch-conf
|
||||
echo "dispatch-conf return value: $?"
|
||||
fi
|
||||
|
||||
if [[ -n $SEQUENTIALIZED ]] ; then
|
||||
myemerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" -j1 $SEQUENTIALIZED
|
||||
fi
|
||||
|
||||
SETS=("@preserved-rebuild")
|
||||
|
||||
if eix -eI smart-live-rebuild &> /dev/null ; then
|
||||
|
|
Loading…
Add table
Reference in a new issue