diff options
author | Mike Gilbert <floppym@gentoo.org> | 2022-06-04 10:18:07 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2022-06-07 20:24:58 -0400 |
commit | ae1fda4dc09564cba28db147d4c682e0397756ff (patch) | |
tree | 12444180d91a06c9ec8b11add2103cdefaddd36f /metadata | |
parent | udev.eclass: document when udev_reload should be called (diff) | |
download | gentoo-ae1fda4dc09564cba28db147d4c682e0397756ff.tar.gz gentoo-ae1fda4dc09564cba28db147d4c682e0397756ff.tar.bz2 gentoo-ae1fda4dc09564cba28db147d4c682e0397756ff.zip |
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@gentoo.org>
Diffstat (limited to 'metadata')
-rw-r--r-- | metadata/install-qa-check.d/60udev-eclass | 5 |
1 files changed, 5 insertions, 0 deletions
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 } |