~ubuntu-core-dev/pkgbinarymangler/ubuntu

« back to all changes in this revision

Viewing changes to pkgstriptranslations

  • Committer: Martin Pitt
  • Date: 2011-06-15 12:48:22 UTC
  • Revision ID: martin.pitt@canonical.com-20110615124822-acvyhp0s3a2c1f5t
pkgstriptranslations: Run apt-cache under env -u LD_PRELOAD to avoid
running it under fakeroot. This now fails since fakeroot 1.16.1 (see
Debian #629956 and Debian #630591).

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    # special-case OEM builds here: strip packages if we are building a package
88
88
    # for an OEM archive which would be stripped in Ubuntu
89
89
    if [ -n "$oemstrip" ]; then
90
 
        if apt-cache madison "$PKGNAME" | egrep -v '://[^ ]*ppa' | grep -q '/ubuntu.*/main .*Packages'; then
 
90
        if env -u LD_PRELOAD apt-cache madison "$PKGNAME" | egrep -v '://[^ ]*ppa' | grep -q '/ubuntu.*/main .*Packages'; then
91
91
            echo "INFO (OEM mode): Package is in Ubuntu main, enabling stripping of *.mo"
92
92
            dostrip=1
93
93
        else