X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=scripts%2Fipkg-make-index.sh;h=dcd11ca191adc36d92d6790cb1a1e61a5be36dce;hb=8fa9b2ce89025d245a816a38fe21c8c4f58e34e4;hp=ac6f9837bca0e1870c7fee973385c12602394849;hpb=b4aa3c899cbf1f81cd8a1ea197481ac84a9d646e;p=openwrt%2Fstaging%2Fstintel.git diff --git a/scripts/ipkg-make-index.sh b/scripts/ipkg-make-index.sh index ac6f9837bc..dcd11ca191 100755 --- a/scripts/ipkg-make-index.sh +++ b/scripts/ipkg-make-index.sh @@ -18,13 +18,13 @@ for pkg in `find $pkg_dir -name '*.ipk' | sort`; do [[ "$name" = "libc" ]] && continue echo "Generating index for package $pkg" >&2 file_size=$(ls -l $pkg | awk '{print $5}') - sha256sum=$(openssl dgst -sha256 $pkg | awk '{print $2}') + sha256sum=$(mkhash sha256 $pkg) # Take pains to make variable value sed-safe sed_safe_pkg=`echo $pkg | sed -e 's/^\.\///g' -e 's/\\//\\\\\\//g'` tar -xzOf $pkg ./control.tar.gz | tar xzOf - ./control | sed -e "s/^Description:/Filename: $sed_safe_pkg\\ Size: $file_size\\ SHA256sum: $sha256sum\\ -Description:/" | grep -vE '^(Maintainer|LicenseFiles|Source|Require)' +Description:/" echo "" done [ -n "$empty" ] && echo