From ab7b79a3e77a6cba6901d7948b1e406e8044b713 Mon Sep 17 00:00:00 2001 From: jow Date: Wed, 13 Apr 2011 13:27:13 +0000 Subject: [PATCH] [backfire] merge r26642 git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@26643 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/ipkg-utils/patches/180-add_installed_size.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ipkg-utils/patches/180-add_installed_size.patch b/tools/ipkg-utils/patches/180-add_installed_size.patch index 6ee7de8db..fb91a3190 100644 --- a/tools/ipkg-utils/patches/180-add_installed_size.patch +++ b/tools/ipkg-utils/patches/180-add_installed_size.patch @@ -5,7 +5,7 @@ echo $CONTROL > $tmp_dir/tarX ( cd $pkg_dir && $TAR $ogargs -X $tmp_dir/tarX -czf $tmp_dir/data.tar.gz . ) + -+installed_size=`du -b $tmp_dir/data.tar.gz | cut -f1` ++installed_size=`stat -c "%s" $tmp_dir/data.tar.gz` +sed -i -e "s/^Installed-Size: .*/Installed-Size: $installed_size/" \ + $pkg_dir/$CONTROL/control +