[Pkg-javascript-devel] Bug#976813: node-cosmiconfig: missing Breaks+Replaces: jest (<< 26.6.3+repack)

Andreas Beckmann anbe at debian.org
Tue Dec 8 08:37:16 GMT 2020


Package: node-cosmiconfig
Version: 7.0.0+~cs8.3.2-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 .../node-cosmiconfig_7.0.0+~cs8.3.2-1_all.deb ...
  Unpacking node-cosmiconfig (7.0.0+~cs8.3.2-1) ...
  dpkg: error processing archive /var/cache/apt/archives/node-cosmiconfig_7.0.0+~cs8.3.2-1_all.deb (--unpack):
   trying to overwrite '/usr/share/nodejs/callsites/index.d.ts', which is also in package jest 26.6.3+ds+~cs64.28.30-1
  Errors were encountered while processing:
   /var/cache/apt/archives/node-cosmiconfig_7.0.0+~cs8.3.2-1_all.deb

There is currently

  Breaks: jest (<< 2.26.3+repack~), node-jest-debbundle (<< 2.26.3+repack~)

which looks like a typoed version (2 times?), while the corresponding
changelog entry has the correct version.
But you also need matching Replaces to properly move files between packages
(the Breaks alone could also be satisfied by simply deconfiguring jest).

cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jest=26.6.3+ds+~cs64.28.30-1_node-cosmiconfig=7.0.0+~cs8.3.2-1.log.gz
Type: application/gzip
Size: 43196 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20201208/e471530a/attachment.gz>


More information about the Pkg-javascript-devel mailing list