From 9116d2b8a7b553e4d445f0d9329a28aa54dfd1ef Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 12 Sep 2011 13:37:32 -0700 Subject: ebuild.sh: make use* return false for "depend" This ensures that `use multislot` is false for the "depend" phase. --- bin/ebuild.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 641d82703..7b77c1077 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -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 -- cgit v1.2.3-1-g7c22