diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-05-26 09:09:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-05-26 09:09:07 +0000 |
commit | 0e2a822b3a973a3344d3e496121b3771e0598bea (patch) | |
tree | e56724eb1be8ed79bf21db16829c8cf3501787ff /scripts | |
parent | 3aa1b8e27b102c73c873e5585251a4bb334375aa (diff) | |
download | upstream-0e2a822b3a973a3344d3e496121b3771e0598bea.tar.gz upstream-0e2a822b3a973a3344d3e496121b3771e0598bea.tar.bz2 upstream-0e2a822b3a973a3344d3e496121b3771e0598bea.zip |
build: allow creating empty package feeds
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45757 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-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 a398559bd8..12d143a044 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 |