pycentral doesn't remove empty directories when upgrading a package

Bug #201204 reported by Philippe Normand
2
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python-central

pycentral 0.5.63ubuntu1 doesn't correctly upgrade packages. If my package provides an egg-info with package version (like foo-0.4.5.egg-info and foo-0.4.6.egg-info in new package version), the foo-0.4.5.egg-info remains (but is empty). That directory should be removed as the use of 2 egg-info directories can confuse setuptools/pkg_resources.

Removing the package and installing the new version works but a simple package upgrade fails.

Revision history for this message
Matthias Klose (doko) wrote :

do you have a package as an example?

Revision history for this message
Philippe Normand (philn) wrote :

elisa 0.3.4-2 on hardy

Revision history for this message
Philippe Normand (philn) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-central - 0.6.0ubuntu2

---------------
python-central (0.6.0ubuntu2) hardy; urgency=low

  * pycentral pkgprepare: Properly remove directories not found anymore
    in the new version of the package. LP: #201204.
  * dh_pycentral: Rename versioned .pth and .egg-info files, removing the
    python version unless DH_PYCENTRAL matches `norename'.
  * Warn about differing trees before moving files to the shared area.

 -- Matthias Klose <email address hidden> Wed, 12 Mar 2008 17:29:45 +0100

Changed in python-central:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.