|
|
esac | esac |
shift | shift |
done | done |
# Check if various utils are allowed and installed |
|
if [[ $avoid_utils != *portage-utils* ]] && hash q 2> /dev/null; then | if [[ $avoid_utils != *portage-utils* ]] && hash q 2> /dev/null; then |
PORTAGE_UTILS=1 | PORTAGE_UTILS=1 |
elif [[ $avoid_utils != *pkgcore* ]] && hash pquery 2> /dev/null; then | elif [[ $avoid_utils != *pkgcore* ]] && hash pquery 2> /dev/null; then |
|
|
elif [[ $avoid_utils != *equery* ]] && hash equery 2> /dev/null; then | elif [[ $avoid_utils != *equery* ]] && hash equery 2> /dev/null; then |
EQUERY=1 | EQUERY=1 |
fi | fi |
|
# Check if various utils are allowed and installed |
|
# Don't use equery until portage 2.1.3 is stable |
|
# Portage 2.1.2 doesn't write all errors to stderr and this |
|
# causes equery output to be potentially hosed |
|
EQUERY=0 |
EMERGE_OPTIONS=(${EMERGE_OPTIONS[@]/%-p/--pretend}) | EMERGE_OPTIONS=(${EMERGE_OPTIONS[@]/%-p/--pretend}) |
EMERGE_OPTIONS=(${EMERGE_OPTIONS[@]/%-f/--fetchonly}) | EMERGE_OPTIONS=(${EMERGE_OPTIONS[@]/%-f/--fetchonly}) |
if [[ ${EMERGE_OPTIONS[@]} != *--pretend* && $UID -ne 0 ]]; then | if [[ ${EMERGE_OPTIONS[@]} != *--pretend* && $UID -ne 0 ]]; then |
|
|
else | else |
set_trap "$LIST.4_packages*" | set_trap "$LIST.4_packages*" |
rm -f $LIST.4* | rm -f $LIST.4* |
|
set -x |
while read obj FILE; do | while read obj FILE; do |
if [[ $PORTAGE_UTILS ]]; then | if [[ $PORTAGE_UTILS ]]; then |
EXACT_PKG=$(qfile -qvC $FILE) | EXACT_PKG=$(qfile -qvC $FILE) |
|
|
fi | fi |
done < "$LIST.3_rebuild" | done < "$LIST.3_rebuild" |
einfo "Generated new $LIST.4_packages_raw and $LIST.4_package_owners" | einfo "Generated new $LIST.4_packages_raw and $LIST.4_package_owners" |
|
set +x |
fi | fi |
} | } |
clean_packages() { | clean_packages() { |
|
|
fi | fi |
fi | fi |
[[ -rs $LIST.5_order ]] && einfo "Generated new $LIST.5_order" | [[ -rs $LIST.5_order ]] && einfo "Generated new $LIST.5_order" |
|
set +x |
} | } |
| |
get_search_env | get_search_env |