From a04d607f74f91f7ea103f3f33199adb14aa0a1e1 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 23 Aug 2024 15:40:21 +0100 Subject: [PATCH] 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 --- 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 95dece1442f51..0d26d04850380 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