From a99744aebcf336357cca75be3f8a713dca55b8a2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 5 Dec 2010 14:09:38 -0800 Subject: ebuild.sh: only run pretend once for ebuild(1) --- bin/ebuild.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 491301f7a..97e3df9f0 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -685,7 +685,15 @@ ebuild_phase_with_hooks() { } dyn_pretend() { - ebuild_phase_with_hooks pkg_pretend + if [[ -e $PORTAGE_BUILDDIR/.pretended ]] ; then + vecho ">>> It appears that '$PF' is already pretended; skipping." + vecho ">>> Remove '$PORTAGE_BUILDDIR/.pretended' to force pretend." + return 0 + fi + ebuild_phase pre_pkg_pretend + ebuild_phase pkg_pretend + > "$PORTAGE_BUILDDIR"/.pretended + ebuild_phase post_pkg_pretend } dyn_setup() { -- cgit v1.2.3-1-g7c22