Hi, Thank you so much.
This is deeply interesting. The same bug might happen in the 495 other packages that are candidate for using dh-cruft too (the one list in "rules/" in src:cruft). I will try to fix this at once in dh-cruft instead of requiring Break+Replaces everywhere. Simplest option is to change the legacy /usr/lib/cruft/filters-unex/ API directory to something else for dh-cruft generated rules and have cruft-ng consider both the old and new location. Greetings, Le lun. 30 janv. 2023, 14:12, Andreas Beckmann <a...@debian.org> a écrit : > > Package: systemd-cron > Version: 1.15.19-3 > Severity: serious > User: debian...@lists.debian.org > Usertags: piuparts > > Hi, > > during a test with piuparts I noticed your package fails to upgrade from > 'stable'. > It installed fine in 'stable', then the upgrade to 'sid' fails > because it tries to overwrite other packages files without declaring a > Breaks+Replaces relation. > > See policy 7.6 at > https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces > > This test intentionally skipped 'testing' to find file overwrite > problems before packages migrate from 'unstable' to 'testing'. > > From the attached log (scroll to the bottom...): > > Preparing to unpack .../systemd-cron_1.15.19-3_amd64.deb ... > Unpacking systemd-cron (1.15.19-3) ... > dpkg: error processing archive > /var/cache/apt/archives/systemd-cron_1.15.19-3_amd64.deb (--unpack): > trying to overwrite '/usr/lib/cruft/filters-unex/systemd-cron', which is > also in package cruft-common 0.9.39 > Errors were encountered while processing: > /var/cache/apt/archives/systemd-cron_1.15.19-3_amd64.deb > > > 0.9.44 is a made up version newer then any version of cruft-common > that was ever in sid (assuming the file conflict existed with all > versions in sid, too, until src:cruft was removed from sid), just > in case someone is going to resurrect it some day. > > > cheers, > > Andreas