Michael Schröder 2011-08-25 16:15:02 +00:00 committed by Git OBS Bridge
parent 6d8d26ec13
commit 6c98fcd652

View File

@ -69,11 +69,13 @@ if test "$1" = "--find-supplements" -a -n "$cache" ; then
/sbin/modinfo -F firmware "$ko" | sed -e "s@\$@ $ko@"
done > $cache
fi
while read fw ; do
hits=$(while read fw ; do
sed -n -e "s@^${fw#$RPM_BUILD_ROOT/lib/firmware/} @@p" < "$cache"
done | sort | \
RPMBUILD_SPECFILE=/dev/null /usr/lib/rpm/find-supplements.ksyms | \
sed 's/^modalias(kernel-[^:]*:/modalias(/' # strip the kernel-$flavor: prefix
done | sort)
if test -n "$hits"; then
echo "$hits" | RPMBUILD_SPECFILE=/dev/null /usr/lib/rpm/find-supplements.ksyms | \
sed 's/^modalias(kernel-[^:]*:/modalias(/' # strip the kernel-$flavor: prefix
fi
exit 0
fi