~ubuntu-branches/ubuntu/wily/hplip/wily

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2015-03-17 16:04:00 UTC
  • Revision ID: package-import@ubuntu.com-20150317160400-9sa52efdypjjoxd0
Tags: 3.15.2-0ubuntu4
debian/rules: Remove explicit call of /usr/bin/python when calling the
/usr/bin/hp-config_usb_printer script so that the shebang does not get
overridden (LP: #1425812).

Show diffs side-by-side

added added

removed removed

Lines of Context:
289
289
            perl -p -i -e 's:^\s*\#\!\s*/usr/bin/python\b:#!/usr/bin/python3:' `readlink -f $$file`; \
290
290
        done
291
291
 
 
292
        # Remove unneeded explicit calls of the Python interpreter to let the
 
293
        # (upgraded) shebangs rule
 
294
        for file in ./debian/tmp/*/udev/rules.d/*.rules; do \
 
295
            perl -p -i -e 's:/usr/bin/python\b\s*::' `readlink -f $$file`; \
 
296
        done
 
297
 
292
298
        # Remove all *.pyc files, they do not need to be shipped with the
293
299
        # package
294
300
        find ./debian/tmp/ -name '*.pyc' -print0 | xargs -0 rm -f