gentooup.sh: add --binary-only
This commit is contained in:
parent
ae416762cc
commit
c934a21e58
1 changed files with 13 additions and 4 deletions
17
gentooup.sh
17
gentooup.sh
|
@ -63,6 +63,12 @@ while [[ $# -gt 0 ]]; do
|
|||
shift
|
||||
echo "execute sequentialized: $SEQUENTIALIZED"
|
||||
;;
|
||||
--binary-only)
|
||||
shift
|
||||
BINARY_ONLY="$1"
|
||||
shift
|
||||
echo "emerge binary only: $BINARY_ONLY"
|
||||
;;
|
||||
--batch)
|
||||
echo "We do not ask questions"
|
||||
PORTAGE_ASK=""
|
||||
|
@ -124,10 +130,10 @@ if eix -u -# sys-apps/portage > /dev/null ; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ -n $SEQUENTIALIZED ]] ; then
|
||||
SEQUENTIALIZED_OPTION=("--exclude" "$SEQUENTIALIZED")
|
||||
fi
|
||||
myemerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" "${SEQUENTIALIZED_OPTION[@]}" world
|
||||
for exclusion in "$SEQUENTIALIZED" "$BINARY_ONLY" ; do
|
||||
EXCLUSION_OPTION=("--exclude" "$exclusion")
|
||||
done
|
||||
myemerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" "${EXCLUSION_OPTION[@]}" world
|
||||
if [[ $INTERACTIVE == 1 ]] ; then
|
||||
dispatch-conf
|
||||
echo "dispatch-conf return value: $?"
|
||||
|
@ -141,6 +147,9 @@ fi
|
|||
if [[ -n $SEQUENTIALIZED ]] ; then
|
||||
myemerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" -j1 $SEQUENTIALIZED
|
||||
fi
|
||||
if [[ -n $BINARY_ONLY ]] ; then
|
||||
myemerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" -G1 $BINARY_ONLY
|
||||
fi
|
||||
|
||||
SETS=("@preserved-rebuild")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue