summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-18 19:47:24 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-18 19:47:24 +0000
commit124650b8c4e6a58ed63ac2df86b1e8b1fda99d6e (patch)
tree5643184771d6beb39dad0fdd988df3c992d218e8 /bin
parent5a50a01adc30e63fce502a231b5e8a5f1a158749 (diff)
downloadportage-124650b8c4e6a58ed63ac2df86b1e8b1fda99d6e.tar.gz
portage-124650b8c4e6a58ed63ac2df86b1e8b1fda99d6e.tar.bz2
portage-124650b8c4e6a58ed63ac2df86b1e8b1fda99d6e.zip
Make successful inherit calls return success so that \'source ${EBUILD}` returns success when an ebuild calls inherit last.
svn path=/main/trunk/; revision=2940
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 92f8ca1e9..40c788a88 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1217,7 +1217,8 @@ inherit() {
shift
done
- ((--ECLASS_DEPTH))
+ ((--ECLASS_DEPTH)) # Returns 1 when ECLASS_DEPTH reaches 0.
+ return 0
}
# Exports stub functions that call the eclass's functions, thereby making them default.