summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'recruiters/quizzes/ebuild-maintainer-quiz.txt')
-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