Ticket #9214: ipkg-utils_du_darwin_fix.patch

File ipkg-utils_du_darwin_fix.patch, 631 bytes (added by Joe Roback <openwrt-devel@…>, 5 years ago)
  • tools/ipkg-utils/patches/180-add_installed_size.patch

     
    55 echo $CONTROL > $tmp_dir/tarX 
    66 ( cd $pkg_dir && $TAR $ogargs -X $tmp_dir/tarX -czf $tmp_dir/data.tar.gz . ) 
    77+ 
    8 +installed_size=`du -b $tmp_dir/data.tar.gz | cut -f1` 
     8+installed_size=`ls -l $tmp_dir/data.tar.gz | awk '{print $5}'` 
    99+sed -i -e "s/^Installed-Size: .*/Installed-Size: $installed_size/" \ 
    1010+       $pkg_dir/$CONTROL/control 
    1111+