Control: reassign -1 python-appdirs 1.3.0-1
Control: severity -1 serious

On Tue, 06 May 2014, Benjamin Drung wrote:
> > Uninstalling the package (and everything that depends on it :( ) and
> > reinstalling does work around the problem, and now the .egg-info item is a
> > directory.
> 
> This looks like a bug in dpkg (to fail replacing a file by a directory).
> Therefore I reassign this bug.

In fact, it's not clearly a bug in dpkg. The problem lies in the fact that
./usr/lib/python2.7/dist-packages/appdirs-1.3.0.egg-info is a symlink
to a file... but at the point when dpkg processes that file, it has already
upgraded ./usr/share/pyshared/appdirs-1.3.0.egg-info to a directory
and since dpkg won't replace a symlink to a directory by a true directory,
you get the error you see because now
/usr/share/pyshared/appdirs-1.3.0.egg-info/* is processed twice: once in
the normal path and once via the symlinked path
./usr/lib/python2.7/dist-packages/appdirs-1.3.0.egg-info/...

I would suggest to handle this in the python-appdirs package because dpkg
doesn't have enough information to be able to do the right thing. We're
aware of this limitation and it will eventually be fixed but it won't be
fixed in time for this specific case.

Thus reassigning back. The proper thing to do is to remove
/usr/lib/python2.7/dist-packages/appdirs-1.3.0.egg-info in the "prerm
upgrade" when you upgrade from the old version.

Thank you.
-- 
Raphaël Hertzog ◈ Debian Developer

Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to