[Python-apps-team] Bug#691704: /usr/share/doc/cython-dbg is empty on upgrade
Yaroslav Halchenko
yoh at debian.org
Tue Jun 25 15:39:28 UTC 2013
Thank you Dmitry -- I will test it out now.
Cheers,
On Wed, 26 Jun 2013, Dmitry Smirnov wrote:
> Control: tags -1 confirmed patch
> Hi Yaroslav,
> This problem is manifesting on "cython-dbg" upgrade from testing to
> unstable. Please find the attached patch to fix this problem.
> > do you know any related bug report / discussion?
> https://wiki.debian.org/MissingCopyrightFile
> (I hope you'll find the above link helpful).
> Thanks.
> Cheers,
> Dmitry Smirnov
> GPG key : 4096R/53968D1B
> ---
> You have enemies? Good. That means you've stood up for something,
> sometime in your life.
> -- Victor Hugo, "Villemain", 1845
> (often misattributed to Winston Churchill)
> From 9e9d0201bda38760c7d1c3fcc4cb8c460bdcc77a Mon Sep 17 00:00:00 2001
> From: Dmitry Smirnov <onlyjob at member.fsf.org>
> Date: Wed, 26 Jun 2013 01:02:16 +1000
> Subject: [PATCH] cython-dbg.postinst: Fixed directory to symlink upgrade
> (Closes: #691704).
> ---
> debian/cython-dbg.postinst | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
> create mode 100644 debian/cython-dbg.postinst
> diff --git a/debian/cython-dbg.postinst b/debian/cython-dbg.postinst
> new file mode 100644
> index 0000000..16c0a8b
> --- /dev/null
> +++ b/debian/cython-dbg.postinst
> @@ -0,0 +1,14 @@
> +#!/bin/sh
> +
> +set -e
> +
> +## https://wiki.debian.org/MissingCopyrightFile
> +## Replace documentation directory with symlink
> +docdir="/usr/share/doc/cython"
> +if [ -d "${docdir}-dbg" ] && [ ! -h "${docdir}-dbg" ]; then
> + rmdir "${docdir}-dbg" 2>/dev/null \
> + && ln -sf "${docdir}" "${docdir}-dbg" \
> + || echo "W: Unable to remove \"${docdir}-dbg\" -- not empty?"
> +fi
> +
> +#DEBHELPER#
--
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Senior Research Associate, Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik
More information about the Python-apps-team
mailing list