1 |
Bug: https://bugs.gentoo.org/847436 |
2 |
Signed-off-by: Mike Gilbert <floppym@g.o> |
3 |
--- |
4 |
metadata/install-qa-check.d/60udev-eclass | 5 +++++ |
5 |
1 file changed, 5 insertions(+) |
6 |
|
7 |
diff --git a/metadata/install-qa-check.d/60udev-eclass b/metadata/install-qa-check.d/60udev-eclass |
8 |
index 4aadc9b1f18..24a4df38ec4 100644 |
9 |
--- a/metadata/install-qa-check.d/60udev-eclass |
10 |
+++ b/metadata/install-qa-check.d/60udev-eclass |
11 |
@@ -54,6 +54,11 @@ udev_rules_check() { |
12 |
eqawarn "QA Notice: package is installing udev rules without calling" |
13 |
eqawarn "udev_reload in pkg_postinst phase" |
14 |
fi |
15 |
+ local pkg_postrm_body="$(declare -fp pkg_postrm 2>&1)" |
16 |
+ if [[ ! ${pkg_postrm_body} == *udev_reload* ]] ; then |
17 |
+ eqawarn "QA Notice: package is installing udev rules without calling" |
18 |
+ eqawarn "udev_reload in pkg_postrm phase" |
19 |
+ fi |
20 |
fi |
21 |
} |
22 |
|
23 |
-- |
24 |
2.35.1 |