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

SVN-Revision: 31704
This commit is contained in:
Felix Fietkau 2012-05-13 12:31:53 +00:00
parent 047c0b8d28
commit f1fd082441

View file

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