ipkg-utils: use (g)stat instead of "du -b" to find package size, fixes Darwin compat (#9214)
SVN-Revision: 26642
This commit is contained in:
parent
372cefb114
commit
2702ba56f0
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
echo $CONTROL > $tmp_dir/tarX
|
echo $CONTROL > $tmp_dir/tarX
|
||||||
( cd $pkg_dir && $TAR $ogargs -X $tmp_dir/tarX -czf $tmp_dir/data.tar.gz . )
|
( 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/" \
|
+sed -i -e "s/^Installed-Size: .*/Installed-Size: $installed_size/" \
|
||||||
+ $pkg_dir/$CONTROL/control
|
+ $pkg_dir/$CONTROL/control
|
||||||
+
|
+
|
||||||
|
|
Loading…
Reference in a new issue