Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r10836 - main/trunk/bin
Date: Sat, 28 Jun 2008 21:58:08
Message-Id: E1KCiQl-0000HK-4k@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-06-28 21:58:02 +0000 (Sat, 28 Jun 2008)
3 New Revision: 10836
4
5 Modified:
6 main/trunk/bin/ebuild.sh
7 Log:
8 Copy portageq exit code validation from has_version() to best_version().
9
10
11 Modified: main/trunk/bin/ebuild.sh
12 ===================================================================
13 --- main/trunk/bin/ebuild.sh 2008-06-28 21:54:31 UTC (rev 10835)
14 +++ main/trunk/bin/ebuild.sh 2008-06-28 21:58:02 UTC (rev 10836)
15 @@ -204,6 +204,18 @@
16 # Takes single depend-type atoms.
17 PYTHONPATH="${PORTAGE_PYM_PATH}:${PYTHONPATH}" \
18 "${PORTAGE_BIN_PATH}/portageq" 'best_version' "${ROOT}" "$1"
19 + local retval=$?
20 + case "${retval}" in
21 + 0)
22 + return 0
23 + ;;
24 + 1)
25 + return 1
26 + ;;
27 + *)
28 + die "unexpected portageq exit code: ${retval}"
29 + ;;
30 + esac
31 }
32
33 use_with() {
34
35 --
36 gentoo-commits@l.g.o mailing list