Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: metadata/install-qa-check.d/
Date: Wed, 08 Jun 2022 00:25:55
Message-Id: 1654647898.ae1fda4dc09564cba28db147d4c682e0397756ff.floppym@gentoo
1 commit: ae1fda4dc09564cba28db147d4c682e0397756ff
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 4 14:18:07 2022 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 8 00:24:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae1fda4d
7
8 install-qa-check.d/60udev-eclass: check for udev_reload in pkg_postrm
9
10 Bug: https://bugs.gentoo.org/847436
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 metadata/install-qa-check.d/60udev-eclass | 5 +++++
14 1 file changed, 5 insertions(+)
15
16 diff --git a/metadata/install-qa-check.d/60udev-eclass b/metadata/install-qa-check.d/60udev-eclass
17 index 4aadc9b1f18d..24a4df38ec4c 100644
18 --- a/metadata/install-qa-check.d/60udev-eclass
19 +++ b/metadata/install-qa-check.d/60udev-eclass
20 @@ -54,6 +54,11 @@ udev_rules_check() {
21 eqawarn "QA Notice: package is installing udev rules without calling"
22 eqawarn "udev_reload in pkg_postinst phase"
23 fi
24 + local pkg_postrm_body="$(declare -fp pkg_postrm 2>&1)"
25 + if [[ ! ${pkg_postrm_body} == *udev_reload* ]] ; then
26 + eqawarn "QA Notice: package is installing udev rules without calling"
27 + eqawarn "udev_reload in pkg_postrm phase"
28 + fi
29 fi
30 }