Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH] bin/bashrc-functions.sh: remove portageq function
Date: Sun, 26 Oct 2014 01:37:59
Message-Id: 544C5071.7040205@gentoo.org
1 Since commit 0cc4c1ac21a2ea94cfb1f6ff4b461a9e349d47df,
2 $PORTAGE_BIN_PATH/portageq no longer exists, which breaks the portageq
3 shell function inside bashrc-functions.sh. Note that
4 $PORTAGE_BIN_PATH/ebuild-helpers/portageq is in $PATH, so we can simply
5 remove the redundant function.
6
7 Fixes: 0cc4c1a ("Install Portage using setup.py")
8 X-Gento-Bug: 524964
9 X-Gentoo-URL: https://bugs.gentoo.org/show_bug.cgi?id=524964
10 ---
11 bin/bashrc-functions.sh | 7 +------
12 1 file changed, 1 insertion(+), 6 deletions(-)
13
14 diff --git a/bin/bashrc-functions.sh b/bin/bashrc-functions.sh
15 index 503b172..cc02546 100644
16 --- a/bin/bashrc-functions.sh
17 +++ b/bin/bashrc-functions.sh
18 @@ -1,12 +1,7 @@
19 #!/bin/bash
20 -# Copyright 1999-2013 Gentoo Foundation
21 +# Copyright 1999-2014 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24 -portageq() {
25 - PYTHONPATH=${PORTAGE_PYTHONPATH:-${PORTAGE_PYM_PATH}}\
26 - "${PORTAGE_PYTHON:-/usr/bin/python}" "${PORTAGE_BIN_PATH}/portageq" "$@"
27 -}
28 -
29 register_die_hook() {
30 local x
31 for x in $* ; do
32 --
33 2.0.4

Replies