commit: 623294d2cb0ab7815d2b7b8a4202f2a7c481299b
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 15 14:35:23 2025 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Jan 15 14:39:33 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=623294d2
optfeature.eclass: Update example
"app-misc/baz[bar]" needs to be quoted, otherwise they may be
interpreted as filename expansion patterns.
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
eclass/optfeature.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/optfeature.eclass b/eclass/optfeature.eclass
index c8b4911320d3..b82ac893addd 100644
--- a/eclass/optfeature.eclass
+++ b/eclass/optfeature.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: optfeature.eclass
@@ -79,7 +79,7 @@ optfeature_header() {
# @CODE
# pkg_postinst() {
# optfeature "foo support" app-misc/foo
-# optfeature "bar support" app-misc/bar app-misc/baz[bar]
+# optfeature "bar support" app-misc/bar "app-misc/baz[bar]"
# optfeature "alphabet support" "app-misc/a app-misc/b" app-misc/c
# }
# @CODE