summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-12-05 14:09:38 -0800
committerZac Medico <zmedico@gentoo.org>2010-12-05 14:11:26 -0800
commita99744aebcf336357cca75be3f8a713dca55b8a2 (patch)
treebdbe9e850b286dcafb3f7aba6a7d6ebc22a60dc3 /bin
parent1d5d1fb05c85ed4386f041bcbd7d8fbe6f7e6e13 (diff)
downloadportage-a99744aebcf336357cca75be3f8a713dca55b8a2.tar.gz
portage-a99744aebcf336357cca75be3f8a713dca55b8a2.tar.bz2
portage-a99744aebcf336357cca75be3f8a713dca55b8a2.zip
ebuild.sh: only run pretend once for ebuild(1)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh10
1 files changed, 9 insertions, 1 deletions
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() {