commit: c874437157617d6bab2e5ae07697c29814142ecf Author: Markos Chandras <hwoarang <AT> gentoo <DOT> org> AuthorDate: Sun Apr 19 09:39:22 2015 +0000 Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org> CommitDate: Sun Apr 19 21:01:04 2015 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=c8744371
ebuild-writing: use-conditionals: Add more information about the old `use foo` style X-Gentoo-Bug: 546950 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=546950 ebuild-writing/use-conditional-code/text.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebuild-writing/use-conditional-code/text.xml b/ebuild-writing/use-conditional-code/text.xml index 3db3a40..bc95f84 100644 --- a/ebuild-writing/use-conditional-code/text.xml +++ b/ebuild-writing/use-conditional-code/text.xml @@ -15,7 +15,7 @@ readable. <p> The <c>if [ "`use foo`" ]</c> and <c>if [ -n "`use foo`" ]</c> forms which are -occasionally seen in older code must <b>not</b> be used. +occasionally seen in older code must <b>not</b> be used. This is because, since portage-2.1, the 'use' portage helper does not produce any output when the use flag is enabled or disabled so the [ "`use foo`" ] statement is pretty much identical to [ "" ] which always evaluates to false. </p> <note>
