commit:     efe06b01128ce829eb4e4c6a5ed5f52a342ecbc0
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 30 21:51:33 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 30 21:51:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efe06b01

app-arch/xz-utils: delete known-bad test files in 9999

As I promised to do in 29d5f89b75c1ab37b3346ac41840cf8fa4b3d3a8 a moment
ago. I really doubt many people are rocking 9999 and there's nothing known-bad
in the git repo *that can use these* but the test files are dangerous anyway
so let's just do it for completeness.

Bug: https://bugs.gentoo.org/928134
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-arch/xz-utils/xz-utils-9999.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app-arch/xz-utils/xz-utils-9999.ebuild 
b/app-arch/xz-utils/xz-utils-9999.ebuild
index fbf94a267df6..7c68d671d406 100644
--- a/app-arch/xz-utils/xz-utils-9999.ebuild
+++ b/app-arch/xz-utils/xz-utils-9999.ebuild
@@ -56,6 +56,9 @@ fi
 src_prepare() {
        default
 
+       # Delete known-compromised test data (bug #928134)
+       rm tests/files/bad-3-corrupt_lzma2.xz 
tests/files/good-large_compressed.lzma || die
+
        if [[ ${PV} == 9999 ]] ; then
                eautopoint
                eautoreconf

Reply via email to