Hi Ben,

On Mon, Oct 7, 2013 at 4:50 AM, Ben Finney <ben+deb...@benfinney.id.au> wrote:
> I have committed a new revision which removes the platform-dependent
> directory in preinst, allowing the new release to create it as a symlink to
> the platform-independent location.
>
> Please try this change and see whether it addresses the problem you've
> reported.

Unfortunately no, looks like you really should use "rm -rf":

dmitry /tmp/coverage-3.7 > sudo dpkg -i ../python-coverage_3.7-1_i386.deb
(Reading database ... 362476 files and directories currently installed.)
Preparing to replace python-coverage 3.4-3 (using
.../python-coverage_3.7-1_i386.deb) ...
rmdir: failed to remove
'/usr/lib/python2.7/dist-packages/coverage/htmlfiles': Directory not
empty
dpkg: error processing ../python-coverage_3.7-1_i386.deb (--install):
 subprocess new pre-installation script returned error exit status 1

Another way to solve this problem will be to patch coverage to load
files from correct directory. For example, in Sphinx we do

sed -i -e "s!^package_dir = .*!package_dir = '/usr/share/sphinx'!" \
  $(debroot)$(site_packages)/sphinx/__init__.py \
  $(debroot)$(py3_site_packages)/sphinx/__init__.py

Other items of my previous review still stay in place.

Additionally, lintian now emits five "manpage-has-bad-whatis-entry" warnings.

--
Dmitry Shachnev


-- 
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