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@gentoo.org>
This commit is contained in:
Sam James
2024-08-23 15:41:06 +01:00
parent 0187a4aede
commit a04d607f74
+1 -1
View File
@@ -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