Package: pylint
Version: 2.2.2-4
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts replaces-without-breaks

Hi,

during a test with piuparts and DOSE tools I noticed your package causes
removal of files that also belong to another package.
This is caused by using Replaces without corresponding Breaks.

The installation sequence to reproduce this problem is

  apt-get install pylint3/buster
  # (1)
  apt-get install pylint/bullseye
  apt-get remove pylint
  # (2)

The list of installed files at points (1) and (2) should be identical,
but the following files have disappeared:

  /usr/lib/python3/dist-packages/pylint*

This is a serious bug violating policy 7.6, see
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces
and also see the footnote that describes this incorrect behavior:
https://www.debian.org/doc/debian-policy/ch-relationships.html#id13

The pylint package has the following relationships with pylint3:

  Conflicts: n/a
  Breaks:    n/a
  Replaces:  pylint3

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

2m0.1s ERROR: FAIL: After purging files have disappeared:
  /usr/lib/python3/dist-packages/pylint-2.2.2.egg-info/PKG-INFO  owned by: 
pylint
  /usr/lib/python3/dist-packages/pylint-2.2.2.egg-info/dependency_links.txt     
 owned by: pylint
  /usr/lib/python3/dist-packages/pylint-2.2.2.egg-info/entry_points.txt  owned 
by: pylint
  /usr/lib/python3/dist-packages/pylint-2.2.2.egg-info/requires.txt      owned 
by: pylint
  /usr/lib/python3/dist-packages/pylint-2.2.2.egg-info/top_level.txt     owned 
by: pylint
  /usr/lib/python3/dist-packages/pylint/__init__.py      owned by: pylint
  /usr/lib/python3/dist-packages/pylint/__main__.py      owned by: pylint
  /usr/lib/python3/dist-packages/pylint/__pkginfo__.py   owned by: pylint
  /usr/lib/python3/dist-packages/pylint/checkers/__init__.py     owned by: 
pylint
  /usr/lib/python3/dist-packages/pylint/checkers/async.py        owned by: 
pylint
  /usr/lib/python3/dist-packages/pylint/checkers/base.py         owned by: 
pylint
...
 /usr/lib/python3/dist-packages/pylint/test/unittest_checkers_utils.py  owned 
by: pylint
  /usr/lib/python3/dist-packages/pylint/test/unittest_config.py  owned by: 
pylint
  /usr/lib/python3/dist-packages/pylint/test/unittest_lint.py    owned by: 
pylint
  /usr/lib/python3/dist-packages/pylint/test/unittest_pyreverse_diadefs.py      
 owned by: pylint
  /usr/lib/python3/dist-packages/pylint/test/unittest_pyreverse_inspector.py    
 owned by: pylint
  /usr/lib/python3/dist-packages/pylint/test/unittest_pyreverse_writer.py       
 owned by: pylint
  /usr/lib/python3/dist-packages/pylint/test/unittest_reporters_json.py  owned 
by: pylint
  /usr/lib/python3/dist-packages/pylint/test/unittest_reporting.py       owned 
by: pylint
  /usr/lib/python3/dist-packages/pylint/test/unittest_utils.py   owned by: 
pylint
  /usr/lib/python3/dist-packages/pylint/testutils.py     owned by: pylint
  /usr/lib/python3/dist-packages/pylint/utils.py         owned by: pylint

2m0.1s ERROR: FAIL: After purging files have been modified:
  /var/lib/dpkg/info/pylint3.list        not owned


cheers,

Andreas

Attachment: pylint3=2.2.2-1_pylint=2.2.2-4.log.gz
Description: application/gzip

Reply via email to