commit:     2c755c274a4bd82e5881c315e3cfad05cc371179
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 16 17:07:09 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Aug 17 21:49:37 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c755c27

metadata/install-qa-check.d: Check for subdirs in /bin and its friends

Bug: https://bugs.gentoo.org/912354
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 metadata/install-qa-check.d/08gentoo-paths | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/metadata/install-qa-check.d/08gentoo-paths 
b/metadata/install-qa-check.d/08gentoo-paths
index 4d84925d8539..5b8607fd5f96 100644
--- a/metadata/install-qa-check.d/08gentoo-paths
+++ b/metadata/install-qa-check.d/08gentoo-paths
@@ -53,7 +53,11 @@ gentoo_path_check() {
                fi
        done
 
-       # 3. check for unexpected /usr/share/doc subdirectories
+       # 3. check for unexpected subdirectories in bin and sbin
+       local bin_subdirs=( "${ED%/}"{,/usr}/{bin,sbin}/*/ )
+       bad_paths+=( "${bin_subdirs[@]%/}" )
+
+       # 4. check for unexpected /usr/share/doc subdirectories
        local doc_dirs=( "${ED%/}"/usr/share/doc/* )
        for x in "${doc_dirs[@]##*/}"; do
                if [[ ${x} != ${PF} ]]; then

Reply via email to