From 7db5bf736e07724a4b6a7889ef2b6b9f4fd3d78b Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 13 May 2012 12:31:53 +0000 Subject: 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 --- scripts/ipkg-make-index.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/ipkg-make-index.sh b/scripts/ipkg-make-index.sh index 8ae7eedc9..a529f28ef 100755 --- a/scripts/ipkg-make-index.sh +++ b/scripts/ipkg-make-index.sh @@ -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}') -- cgit v1.2.3