]> git.proxmox.com Git - pmg-api.git/commit
fix #3915: remove obsolete /etc/apt/apt.conf.d/75pmgconf
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 31 Aug 2022 17:06:29 +0000 (19:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 8 Sep 2022 13:03:13 +0000 (15:03 +0200)
commit109e32c58db03939bae417e46bd4b1816c92d01e
tree2b29d4ed54de2d7dc4a2abd3eb599dc240e4a4ec
parenta9cbbb5b7bc3264c1aa8bfe700f8b44b85aacd2d
fix #3915: remove obsolete /etc/apt/apt.conf.d/75pmgconf

this was forgotten when introducing the more flexible kernel-keeping
logic with proxmox-boot-tool (in 6.4).

with this file present no pve-kernel gets autoremoved.

this patch uses d/maintscript for removing instead of using
debian/conffiles (deb-conffiles(5)) 'remove-on-upgrade'

sticking with d/maintscript was chosen, since else it depends on the
installed debhelper version if the removal is done at all (debhelper
from bullseye simply ignores remove-on-upgrade in d/conffiles)

Tested the following with a local version bump to 7.1-5 and a VM:
* regular unchanged /etc/apt/apt.conf.d/75pmgconf
* manually modified /etc/apt/apt.conf.d/75pmgconf
* manually removed /etc/apt/apt.conf.d/75pmgconf

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
debian/maintscript [new file with mode: 0644]
src/Makefile
src/pmg-apt.conf [deleted file]