Fix permissions of installed scripts, not the copy in debian/tmp

dh_fixperms runs after dh_install, so chmod on debian/tmp is not
effective.
This commit is contained in:
Simon McVittie 2016-03-19 17:53:43 +00:00
parent 75f85052e2
commit fb4568be2e
1 changed files with 6 additions and 4 deletions

10
debian/rules vendored
View File

@ -33,11 +33,13 @@ override_dh_makeshlibs:
# this is an LD_PRELOAD, not a real shared library # this is an LD_PRELOAD, not a real shared library
dh_makeshlibs -Xostree/installed-tests/libreaddir-rand.so dh_makeshlibs -Xostree/installed-tests/libreaddir-rand.so
override_dh_fixperms: override_dh_fixperms-arch:
dh_fixperms -X'*.js' dh_fixperms -X'*.js'
chmod -v +x debian/tmp/usr/lib/ostree/installed-tests/*.js chmod -v 0755 debian/ostree-tests/usr/lib/ostree/installed-tests/*.js
chmod -v +x debian/tmp/usr/lib/ostree/installed-tests/*.py chmod -v 0755 debian/ostree-tests/usr/lib/ostree/installed-tests/*.py
chmod -v +x debian/tmp/usr/lib/ostree/installed-tests/*.sh chmod -v 0755 debian/ostree-tests/usr/lib/ostree/installed-tests/*.sh
# this one is a library, not a script
chmod -v 0644 debian/ostree-tests/usr/lib/ostree/installed-tests/libtest.sh
override_dh_systemd_start: override_dh_systemd_start:
dh_systemd_start --no-start dh_systemd_start --no-start