minor bug fix

This commit is contained in:
fabolous005 2024-10-03 16:32:35 +02:00
parent 82743c6f67
commit fc43fb0567
2 changed files with 3 additions and 3 deletions

4
etools
View File

@ -68,8 +68,8 @@ function etools_get_version() {
if [ "$arch" = "x86_64" ]; then
arch="amd64"
fi
if [[ "$ACCEPT_KEYWORDS" == *"~$arch"* ]] || _matches_testing "$1" "\~$arch"; then
latest=$(_get_latest "$1" "${2:-${package_offset[$1]:-0}}" "~$arch")
if [[ "$ACCEPT_KEYWORDS" == *~$arch* ]] || _matches_testing "$1" "~$arch"; then
latest=$(_get_latest "$1" "${2:-${package_offset[$1]:-0}}" "$arch")
fi
[ -n "$latest" ] && _extract_version "$latest" && "$ETOOLS_DIR"/helper.sh && return 0;
fi

View File

@ -170,7 +170,7 @@ function _matches_live() {
}
function _matches_testing() {
[[ "$ACCEPT_KEYWORDS" == *"~amd64"* ]] && return 0;
[[ "$ACCEPT_KEYWORDS" == *~$3* ]] && return 0;
[ ! -f /etc/portage/package.accept_keywords ] && \
[ ! -d /etc/portage/package.accept_keywords ] && \
return 1;