* [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/use-conditional-code/
@ 2015-04-19 21:01 Markos Chandras
0 siblings, 0 replies; 2+ messages in thread
From: Markos Chandras @ 2015-04-19 21:01 UTC (permalink / raw
To: gentoo-commits
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>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/use-conditional-code/
@ 2021-04-07 17:35 Ulrich Müller
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Müller @ 2021-04-07 17:35 UTC (permalink / raw
To: gentoo-commits
commit: 4fa2b0254e438bd01e4c23f901a6fe9b067f71a5
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 21 04:15:45 2021 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Apr 7 17:28:16 2021 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=4fa2b025
ebuild-writing/use-conditional-code: use || die in example
For the purposes of the example, it's best to keep using || die. Plus,
in this situation, it's likely we'd want to know if the big files were
renamed or similar.
Signed-off-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
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 8db2d52..8725a40 100644
--- a/ebuild-writing/use-conditional-code/text.xml
+++ b/ebuild-writing/use-conditional-code/text.xml
@@ -28,7 +28,7 @@ statement. See <uri link="::ebuild-writing/error-handling/#die and Subshells"/>.
# USE conditional blocks...
if use livecd ; then
# remove some extra files for a small livecd install
- rm -fr "${vimfiles}"/{compiler,doc,ftplugin,indent}
+ rm -fr "${vimfiles}"/{compiler,doc,ftplugin,indent} || die
fi
# Inverse USE conditional blocks...
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-07 17:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-07 17:35 [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/use-conditional-code/ Ulrich Müller
-- strict thread matches above, loose matches on Subject: below --
2015-04-19 21:01 Markos Chandras
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox