summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gentoo.org>2005-09-28 04:45:41 +0000
committerBrian Harring <ferringb@gentoo.org>2005-09-28 04:45:41 +0000
commitfd2f2a80bd918091b8828e1e8f7de94aae2904d5 (patch)
treeb22a6226c8a532ec561accf607ab5b7ba5bf2d58
parent307e335a60b53301cf44a35560bb3b408ffd18c1 (diff)
downloadportage-fd2f2a80bd918091b8828e1e8f7de94aae2904d5.tar.gz
portage-fd2f2a80bd918091b8828e1e8f7de94aae2904d5.tar.bz2
portage-fd2f2a80bd918091b8828e1e8f7de94aae2904d5.zip
bye bye global portageq's.
svn path=/main/branches/2.0/; revision=2033
-rw-r--r--ChangeLog4
-rwxr-xr-xbin/ebuild.sh21
2 files changed, 7 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index a6288b32d..52fe1fcb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,10 @@
3. /etc/portage/profile/virtuals is _USER_ configs only.
27 Sep 2005; Brian Harring <ferringb@gentoo.org> bin/ebuild.sh:
+ No more portageq in the global scope.
+ Instant die.
+
+ 27 Sep 2005; Brian Harring <ferringb@gentoo.org> bin/ebuild.sh:
Tweak to make EAPI work for existing vdb entries.
24 Sep 2005; Brian Harring <ferringb@gentoo.org> pym/portage.py,
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 967fe4ced..58713f9d2 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -182,12 +182,7 @@ hasq() {
has_version() {
if [ "${EBUILD_PHASE}" == "depend" ]; then
- echo -n "QA Notice: has_version() in global scope: " >&2
- if [ ${ECLASS_DEPTH} -gt 0 ]; then
- echo "eclass ${ECLASS}" >&2
- else
- echo "${CATEGORY}/${PF}" >&2
- fi
+ die "portageq calls (has_version calls portageq) are not allowed in the global scope"
fi
# return shell-true/shell-false if exists.
# Takes single depend-type atoms.
@@ -200,12 +195,7 @@ has_version() {
portageq() {
if [ "${EBUILD_PHASE}" == "depend" ]; then
- echo -n "QA Notice: portageq in global scope: " >&2
- if [ ${ECLASS_DEPTH} -gt 0 ]; then
- echo "eclass ${ECLASS}" >&2
- else
- echo "${CATEGORY}/${PF}" >&2
- fi
+ die "portageq calls are not allowed in the global scope"
fi
/usr/lib/portage/bin/portageq "$@"
}
@@ -218,12 +208,7 @@ portageq() {
best_version() {
if [ "${EBUILD_PHASE}" == "depend" ]; then
- echo -n "QA Notice: best_version() in global scope: " >&2
- if [ ${ECLASS_DEPTH} -gt 0 ]; then
- echo "eclass ${ECLASS}" >&2
- else
- echo "${CATEGORY}/${PF}" >&2
- fi
+ die "portageq calls (best_version calls portageq) are not allowed in the global scope"
fi
# returns the best/most-current match.
# Takes single depend-type atoms.