commit: ae1fda4dc09564cba28db147d4c682e0397756ff Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Sat Jun 4 14:18:07 2022 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Wed Jun 8 00:24:58 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae1fda4d
install-qa-check.d/60udev-eclass: check for udev_reload in pkg_postrm Bug: https://bugs.gentoo.org/847436 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> metadata/install-qa-check.d/60udev-eclass | 5 +++++ 1 file changed, 5 insertions(+) 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 }
