3 @@ -250,6 +250,11 @@ mkdir $tmp_dir
5 echo $CONTROL > $tmp_dir/tarX
6 ( cd $pkg_dir && $TAR $ogargs -X $tmp_dir/tarX -czf $tmp_dir/data.tar.gz . )
8 +installed_size=`du -b $tmp_dir/data.tar.gz | cut -f1`
9 +sed -i -e "s/^Installed-Size: .*/Installed-Size: $installed_size/" \
10 + $pkg_dir/$CONTROL/control
12 ( cd $pkg_dir/$CONTROL && $TAR $ogargs -czf $tmp_dir/control.tar.gz . )