commit: a04d607f74f91f7ea103f3f33199adb14aa0a1e1
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 23 14:40:21 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug 23 14:41:06 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a04d607f
dev-util/bpftool: fix assert placement
Otherwise we're not testing the result from xzcat+filterdiff. While here,
add a die to the `test -s` check.
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-util/bpftool/bpftool-7.5.0-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-util/bpftool/bpftool-7.5.0-r1.ebuild
b/dev-util/bpftool/bpftool-7.5.0-r1.ebuild
index 95dece1442f5..0d26d0485038 100644
--- a/dev-util/bpftool/bpftool-7.5.0-r1.ebuild
+++ b/dev-util/bpftool/bpftool-7.5.0-r1.ebuild
@@ -68,9 +68,9 @@ src_unpack() {
eshopts_push -o noglob
ebegin "Filtering partial source patch"
xzcat "${DISTDIR}"/${LINUX_PATCH} | filterdiff -p1
${paths[@]/#/-i} > ${P}.patch
- test -s ${P}.patch
assert -n "Unpacking to ${P} from ${DISTDIR}/${LINUX_PATCH}
failed"
eend $? || die "filterdiff failed"
+ test -s ${P}.patch || die "patch is empty?!"
eshopts_pop
fi