diff --git a/debian/changelog b/debian/changelog index 52bf1c232..504b9bbf3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,7 @@ fwupd (1.5.3-1) UNRELEASED; urgency=medium - Drop libsoup build dependency - Add libcurl build dependency - Add systemd build dependency + * Migrate debian/fwupd.preinst content to debian/fwupd.maintscript -- Mario Limonciello Tue, 08 Dec 2020 08:30:56 -0600 diff --git a/debian/fwupd.maintscript b/debian/fwupd.maintscript new file mode 100644 index 000000000..36becc218 --- /dev/null +++ b/debian/fwupd.maintscript @@ -0,0 +1,4 @@ + +rm_conffile /etc/fwupd.conf 1.0.0~ +rm_conffile /etc/fwupd/remotes.d/fwupd.conf 1.2.7~ +rm_conffile /etc/dbus-1/system.d/org.freedesktop.fwupd.conf 1.3.2~ \ No newline at end of file diff --git a/debian/fwupd.preinst b/debian/fwupd.preinst index 8231dae17..dd2970578 100644 --- a/debian/fwupd.preinst +++ b/debian/fwupd.preinst @@ -3,15 +3,6 @@ set -e #DEBHELPER# -if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then - dpkg-maintscript-helper rm_conffile \ - /etc/fwupd.conf 1.0.0~ -- "$@" - dpkg-maintscript-helper rm_conffile \ - /etc/fwupd/remotes.d/fwupd.conf 1.2.7~ -- "$@" - dpkg-maintscript-helper rm_conffile \ - /etc/dbus-1/system.d/org.freedesktop.fwupd.conf 1.3.2~ -- "$@" -fi - # 1.3.2 had fwupd-refresh.service and fwupd.service both claiming # this directory, but fwupd-refresh.service used DynamicUser directive # meaning no other unit could access it.