* [gentoo-commits] portage r10836 - main/trunk/bin
@ 2008-06-28 21:58 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-06-28 21:58 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2008-06-28 21:58:02 +0000 (Sat, 28 Jun 2008)
New Revision: 10836
Modified:
main/trunk/bin/ebuild.sh
Log:
Copy portageq exit code validation from has_version() to best_version().
Modified: main/trunk/bin/ebuild.sh
===================================================================
--- main/trunk/bin/ebuild.sh 2008-06-28 21:54:31 UTC (rev 10835)
+++ main/trunk/bin/ebuild.sh 2008-06-28 21:58:02 UTC (rev 10836)
@@ -204,6 +204,18 @@
# 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() {
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-28 21:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-28 21:58 [gentoo-commits] portage r10836 - main/trunk/bin Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox