summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/ipkg-utils/patches/180-add_installed_size.patch2
1 files changed, 1 insertions, 1 deletions
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
+