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
|
shift
|
||||||
echo "execute sequentialized: $SEQUENTIALIZED"
|
echo "execute sequentialized: $SEQUENTIALIZED"
|
||||||
;;
|
;;
|
||||||
|
--binary-only)
|
||||||
|
shift
|
||||||
|
BINARY_ONLY="$1"
|
||||||
|
shift
|
||||||
|
echo "emerge binary only: $BINARY_ONLY"
|
||||||
|
;;
|
||||||
--batch)
|
--batch)
|
||||||
echo "We do not ask questions"
|
echo "We do not ask questions"
|
||||||
PORTAGE_ASK=""
|
PORTAGE_ASK=""
|
||||||
|
@ -124,10 +130,10 @@ if eix -u -# sys-apps/portage > /dev/null ; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $SEQUENTIALIZED ]] ; then
|
for exclusion in "$SEQUENTIALIZED" "$BINARY_ONLY" ; do
|
||||||
SEQUENTIALIZED_OPTION=("--exclude" "$SEQUENTIALIZED")
|
EXCLUSION_OPTION=("--exclude" "$exclusion")
|
||||||
fi
|
done
|
||||||
myemerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" "${SEQUENTIALIZED_OPTION[@]}" world
|
myemerge $PORTAGE_ASK "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" "${EXCLUSION_OPTION[@]}" world
|
||||||
if [[ $INTERACTIVE == 1 ]] ; then
|
if [[ $INTERACTIVE == 1 ]] ; then
|
||||||
dispatch-conf
|
dispatch-conf
|
||||||
echo "dispatch-conf return value: $?"
|
echo "dispatch-conf return value: $?"
|
||||||
|
@ -141,6 +147,9 @@ fi
|
||||||
if [[ -n $SEQUENTIALIZED ]] ; then
|
if [[ -n $SEQUENTIALIZED ]] ; then
|
||||||
myemerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" -j1 $SEQUENTIALIZED
|
myemerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" -j1 $SEQUENTIALIZED
|
||||||
fi
|
fi
|
||||||
|
if [[ -n $BINARY_ONLY ]] ; then
|
||||||
|
myemerge "${PORTAGE_UPGRADE_OPTIONS[@]}" "${PORTAGE_OPTIONS[@]}" -G1 $BINARY_ONLY
|
||||||
|
fi
|
||||||
|
|
||||||
SETS=("@preserved-rebuild")
|
SETS=("@preserved-rebuild")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue