Package: python-pkg-resources
Version: 44.1.1-1
Severity: serious
Tags: patch

Hi,

in some upgrade scenarios the unversioned python packages don't get
removed despite of the Breaks existing in python2.7 and friends.
This is caused by the unversioned python packages getting higher scores
and apt-get therefore prefers to keep them installed. Often
python-pkg-resources is installed in these scenarios, too, and (as a
"surviving" python2 package) has the highest score of all python2
packages, making it the ideal candidate for a copy of the Breaks to make
them effective.


Andreas
diff -Nru python-setuptools-44.1.1/debian/changelog 
python-setuptools-44.1.1/debian/changelog
--- python-setuptools-44.1.1/debian/changelog   2020-08-02 14:20:55.000000000 
+0200
+++ python-setuptools-44.1.1/debian/changelog   2021-06-18 02:53:40.000000000 
+0200
@@ -1,3 +1,13 @@
+python-setuptools (44.1.1-2) UNRELEASED; urgency=medium
+
+  * python-pkg-resources: Copy Breaks: python (<< 2.7.18),
+    python-minimal (<< 2.7.18), libpython-stdlib (<< 2.7.18) from python2.7
+    for smoother upgrades from buster. In some upgrade scenarios these Breaks
+    in python2.7 were ineffective because the unversioned python packages got
+    higher scores. Closes: #-1.
+
+ -- Andreas Beckmann <a...@debian.org>  Fri, 18 Jun 2021 02:53:40 +0200
+
 python-setuptools (44.1.1-1) unstable; urgency=medium
 
   * New upstream version.
diff -Nru python-setuptools-44.1.1/debian/control 
python-setuptools-44.1.1/debian/control
--- python-setuptools-44.1.1/debian/control     2020-08-02 14:20:55.000000000 
+0200
+++ python-setuptools-44.1.1/debian/control     2021-06-18 02:53:23.000000000 
+0200
@@ -19,6 +19,10 @@
 Architecture: all
 Multi-Arch: foreign
 Depends: ${misc:Depends}, ${python:Depends}
+Breaks:
+ python (<< 2.7.18),
+ python-minimal (<< 2.7.18),
+ libpython-stdlib (<< 2.7.18),
 Description: Package Discovery and Resource Access using pkg_resources
  The pkg_resources module provides an API for Python libraries to
  access their resource files, and for extensible applications and

Reply via email to