Ignore:
Timestamp:
2011-04-13T15:26:26+02:00 (5 years ago)
Author:
jow
Message:

[tools] ipkg-utils: use (g)stat instead of "du -b" to find package size, fixes Darwin compat (#9214)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/ipkg-utils/patches/180-add_installed_size.patch

    r25021 r26642  
    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=`stat -c "%s" $tmp_dir/data.tar.gz` 
    99+sed -i -e "s/^Installed-Size: .*/Installed-Size: $installed_size/" \ 
    1010+       $pkg_dir/$CONTROL/control 
Note: See TracChangeset for help on using the changeset viewer.