Hi, btw, thanks Aurelien for picking this up again before trixie.The revert by Benjaming somehow went a bit unnoticed so it's good that we at least have the no-longer-create-the-file-on-installation bits in trixie.
On Thu, 9 Jan 2025 20:18:58 +0100 Michael Biebl <bi...@debian.org> wrote:
As for the "remove /etc/timezone on upgrades" as in [2], Aurelien mentioned on IRC that a simple version check like this is maybe to simplistic. tzdata regularly gets stable updates and I assume a stable update would not include this upgrade code.So the upgrade check would have to be: a/ If upgrading from stable → run the code b/ If upgrading from a previous version < 123 → run the codeAs for a/, maybe checking if the version contains "deb" would be a reliable indicator.Another approach to implement the one-time-removal-on-upgrades would be to use a flag file.
Aurelien didn't like the flag file idea and mentioned this on IRC:
aurel32 @mbiebl: a flag file is just delaying the problem, as we'll have to remove a different file at some point also it doesn't work when the package got downgraded and upgraded again looking at deb12u could work, it doesn't cover installation from the initial bookworm media directly upgraded to trixie, but that's probably a corner case aurel32 hmm that should be covered by also looking at the version mbiebl yeah, not really fond of the flag file idea. I just mentioned it for completeness sake
OpenPGP_signature.asc
Description: OpenPGP digital signature