1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 15:54:04 +02:00

build: prevent the virtual "kernel" package from leaking into the package index to make dependency checks fail on kernel config mismatch

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31704 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2012-05-13 12:31:53 +00:00
parent fa5df1fabd
commit 7db5bf736e

View File

@ -11,6 +11,9 @@ fi
which md5sum >/dev/null 2>&1 || alias md5sum=md5
for pkg in `find $pkg_dir -name '*.ipk' | sort`; do
name="${pkg##*/}"
name="${name%%_*}"
[[ "$name" = "kernel" ]] && continue
echo "Generating index for package $pkg" >&2
file_size=$(ls -l $pkg | awk '{print $5}')
md5sum=$(md5sum $pkg | awk '{print $1}')