commit: aa668df52b198d1e1baaa3ce9d3836052e50a85f
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 2 12:45:53 2023 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 3 17:28:35 2023 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=aa668df5
VariableScopeCheck: BROOT is allowed also in pkg_{pre,post}{inst,rm}
PMS commit:
https://gitweb.gentoo.org/proj/pms.git/commit/?id=1a27729740e17ccd4b7a4527a46011fa62c9efb1
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
Closes: https://github.com/pkgcore/pkgcheck/pull/609
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
src/pkgcheck/checks/codingstyle.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pkgcheck/checks/codingstyle.py
b/src/pkgcheck/checks/codingstyle.py
index 2b7dbafe..c99a8eca 100644
--- a/src/pkgcheck/checks/codingstyle.py
+++ b/src/pkgcheck/checks/codingstyle.py
@@ -986,7 +986,7 @@ class VariableScopeCheck(Check):
"EROOT": "pkg_",
"SYSROOT": ("src_", "pkg_setup"),
"ESYSROOT": ("src_", "pkg_setup"),
- "BROOT": ("src_", "pkg_setup"),
+ "BROOT": ("src_", "pkg_setup", "pkg_preinst", "pkg_prerm",
"pkg_post"),
"D": ("src_install", "pkg_preinst"), # pkg_postinst is forbidden
by QA policy PG 107
"ED": ("src_install", "pkg_preinst"), # pkg_postinst is forbidden
by QA policy PG 107
"DESTTREE": "src_install",