diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-12-05 14:09:38 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-12-05 14:09:38 -0800 |
commit | f96dc437d7dd9234eaf40ad0e9d44470c4a25d15 (patch) | |
tree | c3c146c039fb547f3ad21d51a88a242587280a9f | |
parent | 5ec72f096420a170d0f778116722661443cc2c15 (diff) | |
download | portage-f96dc437d7dd9234eaf40ad0e9d44470c4a25d15.tar.gz portage-f96dc437d7dd9234eaf40ad0e9d44470c4a25d15.tar.bz2 portage-f96dc437d7dd9234eaf40ad0e9d44470c4a25d15.zip |
ebuild.sh: only run pretend once for ebuild(1)
-rwxr-xr-x | bin/ebuild.sh | 10 |
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() { |