diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-13 12:31:53 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-13 12:31:53 +0000 |
commit | f1fd082441a00e8073cc832a158bef602695686b (patch) | |
tree | f040d2e20e150bd5154fd4dd446c8ff12cfed837 /scripts/ipkg-make-index.sh | |
parent | 047c0b8d28d013dfa3520d9c98a0957ac4685b6a (diff) | |
download | upstream-f1fd082441a00e8073cc832a158bef602695686b.tar.gz upstream-f1fd082441a00e8073cc832a158bef602695686b.tar.bz2 upstream-f1fd082441a00e8073cc832a158bef602695686b.zip |
build: prevent the virtual "kernel" package from leaking into the package index to make dependency checks fail on kernel config mismatch
SVN-Revision: 31704
Diffstat (limited to 'scripts/ipkg-make-index.sh')
-rwxr-xr-x | scripts/ipkg-make-index.sh | 3 |
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}') |