commit:     58fd812b32a2958a2675da6a86b80ad944d83517
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  8 07:11:13 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Aug 13 06:40:00 2023 +0000
URL:        https://gitweb.gentoo.org/proj/ruby-scripts.git/commit/?id=58fd812b

ruby.eselect: Call create_man_links unconditionally

This avoids calling portageq. create_man_links() will do nothing when
the target man page doesn't exist, regardless of FEATURES="noman".

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
Signed-off-by: Hans de Graaff <hans <AT> degraaff.org>

 eselect-ruby/ruby.eselect | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eselect-ruby/ruby.eselect b/eselect-ruby/ruby.eselect
index 35fc952..1071d77 100644
--- a/eselect-ruby/ruby.eselect
+++ b/eselect-ruby/ruby.eselect
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 # vim: set ft=sh:
 
@@ -94,7 +94,7 @@ create_symlinks() {
                echo
        fi
 
-       [[ $(portageq envvar FEATURES) =~ noman ]] || create_man_links 
${version}
+       create_man_links ${version}
 
        write_list_start "Successfully switched to profile:"
        write_kv_list_entry "${target}" ""

Reply via email to