From 18a98e25f811200020d375146c06167bc8937231 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 28 Jun 2008 21:58:02 +0000 Subject: [PATCH] Copy portageq exit code validation from has_version() to best_version(). svn path=/main/trunk/; revision=10836 --- bin/ebuild.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 2bb6e60ee..4e35f7c4d 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -204,6 +204,18 @@ best_version() { # Takes single depend-type atoms. PYTHONPATH="${PORTAGE_PYM_PATH}:${PYTHONPATH}" \ "${PORTAGE_BIN_PATH}/portageq" 'best_version' "${ROOT}" "$1" + local retval=$? + case "${retval}" in + 0) + return 0 + ;; + 1) + return 1 + ;; + *) + die "unexpected portageq exit code: ${retval}" + ;; + esac } use_with() { -- 2.26.2