bye bye global portageq's.
authorBrian Harring <ferringb@gentoo.org>
Wed, 28 Sep 2005 04:45:41 +0000 (04:45 -0000)
committerBrian Harring <ferringb@gentoo.org>
Wed, 28 Sep 2005 04:45:41 +0000 (04:45 -0000)
svn path=/main/branches/2.0/; revision=2033

ChangeLog
bin/ebuild.sh

index a6288b32d6a60fb6c1770916759cf6275e9f3a95..52fe1fcb3fb130fd2fa187897cb947f321bf333b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,10 @@
     2. /var/cache/edb/world is now /var/lib/portage/world.
     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.
 
index 967fe4ced404dbd0e77e8078b80ac42f38a0d50b..58713f9d2d3b6e79145e13f1e852cc4276fbdda5 100755 (executable)
@@ -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.