summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@eng.windriver.com>2024-04-23 19:09:13 +0800
committerArmin Kuster <akuster808@gmail.com>2024-05-08 22:02:48 -0400
commit7346f5996c930d699f646b05a93b81d1a85f01b4 (patch)
treefb9c27fa326fd8e920189ab8683313b667711f4e
parent11ea91192d43d7c2b0b95a93aa63ca7e73e38034 (diff)
downloadmeta-security-7346f5996c930d699f646b05a93b81d1a85f01b4.tar.gz
scap-security-guide: remove __pycache__ in ptest directory
Remove __pycache__ directories as they contain references to TMPDIR. Fix QA warnings: WARNING: scap-security-guide-0.1.71-r0 do_package_qa: QA Issue: File /usr/lib64/scap-security-guide/ptest/git/utils/_pycache_/gen_reference_table.cpython-312.pyc in package scap-security-guide-ptest contains reference to TMPDIR Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--recipes-compliance/scap-security-guide/scap-security-guide_0.1.71.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-compliance/scap-security-guide/scap-security-guide_0.1.71.bb b/recipes-compliance/scap-security-guide/scap-security-guide_0.1.71.bb
index 5e45332..43c8b8d 100644
--- a/recipes-compliance/scap-security-guide/scap-security-guide_0.1.71.bb
+++ b/recipes-compliance/scap-security-guide/scap-security-guide_0.1.71.bb
@@ -82,6 +82,11 @@ do_install_ptest() {
82 install -d ${t}/$d 82 install -d ${t}/$d
83 cp -fr ${S}/$d/* ${t}/$d/. 83 cp -fr ${S}/$d/* ${t}/$d/.
84 done 84 done
85
86 # Remove __pycache__ directories as they contain references to TMPDIR
87 for pycachedir in $(find ${D}/${PTEST_PATH} -name __pycache__); do
88 rm -rf $pycachedir
89 done
85} 90}
86 91
87FILES:${PN} += "${datadir}/xml ${datadir}/openscap" 92FILES:${PN} += "${datadir}/xml ${datadir}/openscap"