Package: cron-daemon-common
Version: 3.0pl1-143
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install
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

>From the attached log (scroll to the bottom...):

  Selecting previously unselected package cron-daemon-common.
  Preparing to unpack .../cron-daemon-common_3.0pl1-143_all.deb ...
  Unpacking cron-daemon-common (3.0pl1-143) ...
  dpkg: error processing archive 
/var/cache/apt/archives/cron-daemon-common_3.0pl1-143_all.deb (--unpack):
   trying to overwrite '/etc/crontab', which is also in package bcron 0.11-9
  Errors were encountered while processing:
   /var/cache/apt/archives/cron-daemon-common_3.0pl1-143_all.deb

  Selecting previously unselected package cron-daemon-common.
  Preparing to unpack .../cron-daemon-common_3.0pl1-143_all.deb ...
  Unpacking cron-daemon-common (3.0pl1-143) ...
  dpkg: error processing archive 
/var/cache/apt/archives/cron-daemon-common_3.0pl1-143_all.deb (--unpack):
   trying to overwrite '/etc/cron.d/.placeholder', which is also in package 
systemd-cron 1.15.18-1
  Errors were encountered while processing:
   /var/cache/apt/archives/cron-daemon-common_3.0pl1-143_all.deb

For bcron the conflicting file is only
  /etc/crontab

For systemd-cron the conflicting files are
  /etc/cron.d/.placeholder
  /etc/cron.daily/.placeholder
  /etc/cron.hourly/.placeholder
  /etc/cron.monthly/.placeholder
  /etc/cron.weekly/.placeholder
  /etc/crontab
 
These two alternative cron implementations need to start using
cron-daemon-common for these shared files first before you can
add the corresponding Breaks+Replaces against them.


cheers,

Andreas

Reply via email to