Bug#926251: freecad-common: fails to upgrade from 'testing' - trying to overwrite /usr/share/man/man1/freecad.1.gz
Andreas Beckmann
anbe at debian.org
Tue Apr 2 18:11:14 BST 2019
Package: freecad-common
Version: 0.18+dfsg1-1
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts
Hi,
during a test with piuparts I noticed your package fails to upgrade from
'testing'.
It installed fine in 'testing', 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
>From the attached log (scroll to the bottom...):
Preparing to unpack .../freecad-common_0.18+dfsg1-1_all.deb ...
Unpacking freecad-common (0.18+dfsg1-1) over (0.18~pre1+dfsg1-5) ...
dpkg: error processing archive /var/cache/apt/archives/freecad-common_0.18+dfsg1-1_all.deb (--unpack):
trying to overwrite '/usr/share/man/man1/freecad.1.gz', which is also in package freecad-python2 0.18~pre1+dfsg1-5
Errors were encountered while processing:
/var/cache/apt/archives/freecad-common_0.18+dfsg1-1_all.deb
freecad-common currently has
Replaces: freecad (<< 0.18~), freecad-python2 (<< 0.18~)
Conflicts: freecad (<< 0.18~), freecad-python2 (<< 0.18~)
Breaks: freecad (<< 0.18~), freecad-python2 (<< 0.18~)
which does not cover the version in testing. (<< 0.18) should do.
Also having both Breaks and Conflicts on the same is redundant.
You most likely don't need the Conflicts, the Breaks should be
sufficient (and simplify the upgrade path for apt).
cheers,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freecad-python2=0.18~pre1+dfsg1-5_freecad-common=0.18+dfsg1-1.log.gz
Type: application/gzip
Size: 40659 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20190402/bd071976/attachment-0001.gz>
More information about the debian-science-maintainers
mailing list