mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user