ebuild.sh: make use* return false for "depend"
authorZac Medico <zmedico@gentoo.org>
Mon, 12 Sep 2011 20:37:32 +0000 (13:37 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 12 Sep 2011 20:37:32 +0000 (13:37 -0700)
This ensures that `use multislot` is false for the "depend" phase.

bin/ebuild.sh

index 641d827034974012115d5a6eb13174de2c5b896d..7b77c10771057eaa6780dc8d4859937e12e24017 100755 (executable)
@@ -31,9 +31,14 @@ else
                keepdir KV_major KV_micro KV_minor KV_to_int \
                libopts register_die_hook register_success_hook \
                remove_path_entry set_unless_changed strip_duplicate_slashes \
-               unset_unless_changed use useq usev use_with use_enable ; do
+               unset_unless_changed use_with use_enable ; do
                eval "${x}() { : ; }"
        done
+       # These dummy functions return false, in order to ensure that
+       # `use multislot` is false for the "depend" phase.
+       for x in use useq usev ; do
+               eval "${x}() { return 1; }"
+       done
        # These functions die because calls to them during the "depend" phase
        # are considered to be severe QA violations.
        for x in best_version has_version portageq ; do