From ae1fda4dc09564cba28db147d4c682e0397756ff Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sat, 4 Jun 2022 10:18:07 -0400 Subject: install-qa-check.d/60udev-eclass: check for udev_reload in pkg_postrm Bug: https://bugs.gentoo.org/847436 Signed-off-by: Mike Gilbert --- metadata/install-qa-check.d/60udev-eclass | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'metadata/install-qa-check.d/60udev-eclass') diff --git a/metadata/install-qa-check.d/60udev-eclass b/metadata/install-qa-check.d/60udev-eclass index 4aadc9b1f18d..24a4df38ec4c 100644 --- a/metadata/install-qa-check.d/60udev-eclass +++ b/metadata/install-qa-check.d/60udev-eclass @@ -54,6 +54,11 @@ udev_rules_check() { eqawarn "QA Notice: package is installing udev rules without calling" eqawarn "udev_reload in pkg_postinst phase" fi + local pkg_postrm_body="$(declare -fp pkg_postrm 2>&1)" + if [[ ! ${pkg_postrm_body} == *udev_reload* ]] ; then + eqawarn "QA Notice: package is installing udev rules without calling" + eqawarn "udev_reload in pkg_postrm phase" + fi fi } -- cgit v1.2.3-65-gdbad