commit: ab538e7750fb85d57a3eb9d9b440848c1f2c074a Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Thu May 11 17:27:51 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu May 11 20:15:46 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ab538e77
ebuild-helpers/portageq: Deprecate Calling portageq from ebuilds was never allowed. Last usage was removed from Gentoo repository on 2019-03-14. Bug: https://bugs.gentoo.org/906129 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> Signed-off-by: Sam James <sam <AT> gentoo.org> bin/ebuild-helpers/portageq | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/ebuild-helpers/portageq b/bin/ebuild-helpers/portageq index 7d14f54c2..0df0cd273 100755 --- a/bin/ebuild-helpers/portageq +++ b/bin/ebuild-helpers/portageq @@ -1,10 +1,14 @@ #!/usr/bin/env bash -# Copyright 2009-2015 Gentoo Foundation +# Copyright 2009-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 scriptpath=${BASH_SOURCE[0]} scriptname=${scriptpath##*/} +source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1 + +eqawarn "QA Notice: '${0##*/}' is not allowed in ebuild scope" + # Use safe cwd, avoiding unsafe import for bug #469338. cd "${PORTAGE_PYM_PATH}" || exit 1