tag 386211 +patch

On Thu, Sep 07, 2006 at 02:12:25PM +0200, Ludovic Rousseau wrote:
> Le 05.09.2006, à 19:30:43, Luis Rodrigo Gallardo Cruz a écrit:
> > Upon update to this version the byte-compiled files in 
> >  /usr/lib/python2.3/site-packages/PyPlucker/
> > were left behind.
> 
> I note that on one of my systems I still have plucker 1.8-16 and no
> byte-compiled files are present in
> /usr/lib/python2.3/site-packages/PyPlucker/
> 
> $ ls /usr/lib/python2.3/site-packages/PyPlucker/
> AliasList.py         ImageParser.py      PluckerDocs.py   Url.py
> ConfigFiles.py       __init__.py         PluckerLinks.py  UtilFns.py
> ConversionParser.py  JIUImageParser.py   Profiling.py     Writer.py
> Decode.py            PalmImagePlugin.py  Retriever.py
> ExclusionList.py     Parser.py           Spider.py
> helper               pluck-comics.py     TextParser.py
> 
> Maybe you started plucker as root and Python stored the byte-compiled
> files there?

You're right, they must have been created that way, since plucker did
not byte compile it's files on install.

Given that 1.8-17 no longer ships files in /usr/lib/python* maybe you
could add a snippet in postinst to completely remove those dirs.

The following works on my system:

---------------------------------------------------------------------
#!/bin/sh

set -e

if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 1.8-17; then
  # Remove dirs from old versions
  rm -rf /usr/lib/python2.3/site-packages/PyPlucker/ || true
  rm -rf /usr/lib/python2.4/site-packages/PyPlucker/ || true
fi

#DEBHELPER#

exit 0
---------------------------------------------------------------------

-- 
Rodrigo Gallardo
GPG-Fingerprint: 7C81 E60C 442E 8FBC D975  2F49 0199 8318 ADC9 BC28

Attachment: signature.asc
Description: Digital signature

Reply via email to