summaryrefslogtreecommitdiff
path: root/scripts/ipkg-make-index.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-05-26 09:09:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-05-26 09:09:07 +0000
commitecb14f4a5da62e9ea4b5020e25ccec37da669f59 (patch)
treeabe77484933d4994d4e3e8230c82e6f8ed82bf90 /scripts/ipkg-make-index.sh
parent7c5c213621909f85a59ecf65ae6e654f4de560a1 (diff)
downloadmtk-20170518-ecb14f4a5da62e9ea4b5020e25ccec37da669f59.zip
mtk-20170518-ecb14f4a5da62e9ea4b5020e25ccec37da669f59.tar.gz
mtk-20170518-ecb14f4a5da62e9ea4b5020e25ccec37da669f59.tar.bz2
build: allow creating empty package feeds
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45757
Diffstat (limited to 'scripts/ipkg-make-index.sh')
-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 a398559..12d143a 100755
--- a/scripts/ipkg-make-index.sh
+++ b/scripts/ipkg-make-index.sh
@@ -9,8 +9,10 @@ if [ -z $pkg_dir ] || [ ! -d $pkg_dir ]; then
fi
which md5sum >/dev/null 2>&1 || alias md5sum=md5
+empty=1
for pkg in `find $pkg_dir -name '*.ipk' | sort`; do
+ empty=
name="${pkg##*/}"
name="${name%%_*}"
[[ "$name" = "kernel" ]] && continue
@@ -28,3 +30,4 @@ SHA256sum: $sha256sum\\
Description:/"
echo ""
done
+[ -n "$empty" ] && echo