[Debian-on-mobile-maintainers] Bug#974059: librem5-tweaks, pinephone-tweaks, pinetab-tweaks: need mutual Conflicts

Andreas Beckmann anbe at debian.org
Mon Nov 9 14:06:35 GMT 2020


Package: librem5-tweaks,pinephone-tweaks,pinetab-tweaks
Version: 2
Severity: serious
User: debian-qa at 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...):

  Preparing to unpack .../pinephone-tweaks_2_all.deb ...
  Unpacking pinephone-tweaks (2) ...
  dpkg: error processing archive /var/cache/apt/archives/pinephone-tweaks_2_all.deb (--unpack):
   trying to overwrite '/etc/machine-info', which is also in package librem5-tweaks 2
  Errors were encountered while processing:
   /var/cache/apt/archives/pinephone-tweaks_2_all.deb

Assuming that these packages are not meant for co-installability
(and therefore alternatives are not a sensible option), probably
the best solution would be to introduce a new virtual package
and have all three (currently, perhaps more in the future)
  Conflicts+Replaces+Provides: the-new-virtual-package


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: librem5-tweaks=2_pinephone-tweaks=2.log.gz
Type: application/gzip
Size: 13964 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-on-mobile-maintainers/attachments/20201109/9b196547/attachment.gz>


More information about the Debian-on-mobile-maintainers mailing list