metadata/install-qa-check.d: update udevdir check

Recent versions of udev install rules in /usr/lib/udev/rules.d.

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert
2026-01-16 13:02:19 -05:00
parent 5898c5fbed
commit 67f078a709

View File

@@ -1,4 +1,4 @@
# Copyright 2021-2022 Gentoo Authors
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# QA check: ensure that packages installing udev rules inherit the eclass
@@ -36,7 +36,7 @@ udev_rules_check() {
return
fi
if [[ -d "${ED}"/lib/udev/rules.d/ ]] ; then
if [[ -d "${ED}"/lib/udev/rules.d || -d "${ED}"/usr/lib/udev/rules.d ]] ; then
if ! has udev ${INHERITED} ; then
eqawarn "QA Notice: package is installing udev rules without inheriting udev.eclass!"
eqawarn "Packages must inherit udev.eclass then call udev_reload in pkg_postinst."