Commit 62f2932c authored by Romain Perier's avatar Romain Perier Committed by Romain Perier

Switch to package.maintscript

This removes the following lintian warning:
W: raspi3-firmware: maintainer-script-should-not-use-dpkg-maintscript-helper

By adding a raspi3-firmware.maintscript that contains all the command
that are supposed to be passed to dpkg-mainscript-helper. This also
refactorizes code between postinst,postrm and preinst scripts
parent fe1ca380
raspi3-firmware (1.20190215-2) UNRELEASED; urgency=medium
* Switch to package.maintscript
-- Romain Perier <romain.perier@gmail.com> Mon, 04 Mar 2019 13:31:59 +0100
raspi3-firmware (1.20190215-1) unstable; urgency=medium
[ Gunnar Wolf ]
......
rm_conffile /etc/kernel/postinst.d/linux-firmware-raspi3 1.20161123-2
mv_conffile /etc/kernel/postrm.d/50raspi3-firmware /etc/kernel/postrm.d/z50-raspi3-firmware
mv_conffile /etc/kernel/postinst.d/50raspi3-firmware /etc/kernel/postinst.d/z50-raspi3-firmware
mv_conffile /etc/initramfs/post-update.d/50raspi3-firmware /etc/initramfs/post-update.d/z50-raspi3-firmware
......@@ -34,11 +34,6 @@ case "$1" in
;;
esac
dpkg-maintscript-helper rm_conffile /etc/kernel/postinst.d/linux-firmware-raspi3 1.20161123-2 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/kernel/postrm.d/50raspi3-firmware /etc/kernel/postrm.d/z50-raspi3-firmware -- "$@"
dpkg-maintscript-helper mv_conffile /etc/kernel/postinst.d/50raspi3-firmware /etc/kernel/postinst.d/z50-raspi3-firmware -- "$@"
dpkg-maintscript-helper mv_conffile /etc/initramfs/post-update.d/50raspi3-firmware /etc/initramfs/post-update.d/z50-raspi3-firmware -- "$@"
#DEBHELPER#
exit 0
#!/bin/sh
# vim:ts=2:sw=2:et
set -e
dpkg-maintscript-helper rm_conffile /etc/kernel/postinst.d/linux-firmware-raspi3 1.20161123-2 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/kernel/postrm.d/50raspi3-firmware /etc/kernel/postrm.d/z50-raspi3-firmware -- "$@"
dpkg-maintscript-helper mv_conffile /etc/kernel/postinst.d/50raspi3-firmware /etc/kernel/postinst.d/z50-raspi3-firmware -- "$@"
dpkg-maintscript-helper mv_conffile /etc/initramfs/post-update.d/50raspi3-firmware /etc/initramfs/post-update.d/z50-raspi3-firmware -- "$@"
#DEBHELPER#
exit 0
#!/bin/sh
# vim:ts=2:sw=2:et
set -e
dpkg-maintscript-helper rm_conffile /etc/kernel/postinst.d/linux-firmware-raspi3 1.20161123-2 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/kernel/postrm.d/50raspi3-firmware /etc/kernel/postrm.d/z50-raspi3-firmware -- "$@"
dpkg-maintscript-helper mv_conffile /etc/kernel/postinst.d/50raspi3-firmware /etc/kernel/postinst.d/z50-raspi3-firmware -- "$@"
dpkg-maintscript-helper mv_conffile /etc/initramfs/post-update.d/50raspi3-firmware /etc/initramfs/post-update.d/z50-raspi3-firmware -- "$@"
#DEBHELPER#
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment