projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: fix image signature for UBNT-XM boards
[openwrt.git]
/
tools
/
ipkg-utils
/
patches
/
180-add_installed_size.patch
diff --git
a/tools/ipkg-utils/patches/180-add_installed_size.patch
b/tools/ipkg-utils/patches/180-add_installed_size.patch
index
6ee7de8
..
fb91a31
100644
(file)
--- 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 . )
+
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
+
+sed -i -e "s/^Installed-Size: .*/Installed-Size: $installed_size/" \
+ $pkg_dir/$CONTROL/control
+
This page took
0.022309 seconds
and
4
git commands to generate.