[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: uninstalling issue of a local Debian package



On Mon, Oct 28, 2013 at 1:52 AM, Florian Rothmaier wrote:

> I'm an astro-physicist working for the Virtual Observatory project at
> the University of Heidelberg.

Awesome!

> What is the reason behind this issue?

It sounds like your prerm is missing the code needed to delete the
.pyc files. For dh_python2 this looks approximately like the code
below. On the installed system, take a look at
/var/lib/dpkg/info/python-gavodachs.prerm or in the build directory
after a successful build, look at
debian/python-gavodachs/DEBIAN/prerm.

# Automatically added by dh_python2:
if which pyclean >/dev/null 2>&1; then
        pyclean -p iotop
else
        dpkg -L iotop | grep \.py$ | while read file
        do
                rm -f "${file}"[co] >/dev/null
        done
fi

-- 
bye,
pabs

http://wiki.debian.org/PaulWise


Reply to: