Migrate debian/fwupd.preinst content to debian/fwupd.maintscript

This commit is contained in:
Mario Limonciello 2020-12-08 08:59:14 -06:00
parent 9c6742a60d
commit 89b4a4d031
3 changed files with 5 additions and 9 deletions

1
debian/changelog vendored
View File

@ -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 <mario.limonciello@dell.com> Tue, 08 Dec 2020 08:30:56 -0600

4
debian/fwupd.maintscript vendored Normal file
View File

@ -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~

View File

@ -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.