projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec72f0
)
ebuild.sh: only run pretend once for ebuild(1)
author
Zac Medico
<zmedico@gentoo.org>
Sun, 5 Dec 2010 22:09:38 +0000
(14:09 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 5 Dec 2010 22:09:38 +0000
(14:09 -0800)
bin/ebuild.sh
patch
|
blob
|
history
diff --git
a/bin/ebuild.sh
b/bin/ebuild.sh
index 491301f7a20081fc144df0fb05138cbc9b42f2b5..97e3df9f0d8bdd1fb6d69a2eabf69b3b5454bbdd 100755
(executable)
--- 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() {