summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2022-01-18 16:14:57 +0200
committerJoonas Niilola <juippis@gentoo.org>2022-01-18 16:16:10 +0200
commit72081251f502c45887dc6ebc97fb69ce4c8c998d (patch)
treef8ab57aa7b803dc41bbbe2841d0087c181a54042
parentebuild-maintainer-quiz: generalize the question about dependency classes (diff)
downloadcomrel-72081251f502c45887dc6ebc97fb69ce4c8c998d.tar.gz
comrel-72081251f502c45887dc6ebc97fb69ce4c8c998d.tar.bz2
comrel-72081251f502c45887dc6ebc97fb69ce4c8c998d.zip
ebuild-maintainer-quiz: combine questions regarding error handling
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--recruiters/quizzes/ebuild-maintainer-quiz.txt29
1 files changed, 21 insertions, 8 deletions
diff --git a/recruiters/quizzes/ebuild-maintainer-quiz.txt b/recruiters/quizzes/ebuild-maintainer-quiz.txt
index 1eaf1e1..3ab9c66 100644
--- a/recruiters/quizzes/ebuild-maintainer-quiz.txt
+++ b/recruiters/quizzes/ebuild-maintainer-quiz.txt
@@ -303,12 +303,6 @@ docs: devmanual
docs: devmanual
-6.e
- # If USE=fnord is enabled, make extra targets:
- use fnord && ( emake fnordification || die "it broke" )
-
-docs: devmanual
-
7. What is the 'Gentoo way' of globally setting environment variables
for all users? How is this accomplished in ebuilds?
@@ -323,8 +317,27 @@ docs: PMS
docs: devmanual
-10. When should you use || die "msg" with commands/functions?
- Could || die always be moved inside those functions/commands?
+10. When should you use || die "msg" with commands/functions? Would you
+ rewrite the following snippets, and if yes, how?
+
+10.a.
+ use fnord && ( emake fnordification && cp fnordification bar/ || die )
+
+10.b.
+ emake docs || die
+
+10.c.
+ my_custom_function() {
+ cd "${S}"/ext1
+ ./ext1.sh
+ cd "${S}"/ext2
+ ./ext2.sh
+ }
+
+ src_prepare() {
+ default
+ my_custom_function || die
+ }
docs: devmanual