~ubuntu-branches/ubuntu/vivid/pkgbinarymangler/vivid

« back to all changes in this revision

Viewing changes to pkgstripfiles

  • Committer: Martin Pitt
  • Date: 2011-08-21 19:13:56 UTC
  • Revision ID: martin.pitt@canonical.com-20110821191356-qguf1tg8vv5j53oz
* test/icecream/debian/rules, test/icecream/Makefile: Install PNGs with some
  defined permissions.
* test/run, check_deb_integrity(): Verify that PNG permissions in the final
  debs are as they are expected to be.
* pkgstripfiles: Restore permissions of optimized PNG files to their
  original value; advpng does not preserve them. (LP: #817792)

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
    # optipng/advancecomp
73
73
    find -type f -name '*.png' | while read f; do
 
74
        orig_perms=`stat -c %a "$f"`
74
75
        if ! optipng -o4 -preserve "$f"; then
75
76
            echo "WARNING: optipng failed on $f, ignoring" >&2
76
77
            continue
80
81
            continue
81
82
        fi
82
83
 
 
84
        # advpng does not keep permissions
 
85
        chmod "$orig_perms" "$f"
 
86
 
83
87
        # update md5sum
84
88
        if [ -f DEBIAN/md5sums ]; then
85
89
            f=${f#./}