aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-13 12:31:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-05-13 12:31:53 +0000
commitddad7c18a1d17abb8ed6f15ca1b7d17db4adc647 (patch)
treea6f8c53aa2f404e0bd06d514618e19c54fd8531d /scripts
parentea83f75b323058458b49fbf808b5aa529acde81b (diff)
downloadupstream-ddad7c18a1d17abb8ed6f15ca1b7d17db4adc647.tar.gz
upstream-ddad7c18a1d17abb8ed6f15ca1b7d17db4adc647.tar.bz2
upstream-ddad7c18a1d17abb8ed6f15ca1b7d17db4adc647.zip
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ipkg-make-index.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/ipkg-make-index.sh b/scripts/ipkg-make-index.sh
index 8ae7eedc9a..a529f28ef5 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}')