home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / python-numpy.preinst < prev    next >
Encoding:
Text File  |  2010-10-07  |  636 b   |  24 lines

  1. #!/bin/sh
  2. # TODO: remove this file after releasing Squeeze
  3. set -e
  4.  
  5. PYCENTRAL=/usr/bin/pycentral
  6.  
  7. if [ "$1" = upgrade ]
  8. then
  9.        if dpkg --compare-versions "$2" lt 1:1.4.1-1 ; then
  10.        if [ -x $PYCENTRAL ]; then
  11.                # explicitly remove old python-central files
  12.                pycentral pkgremove python-numpy
  13.        fi
  14.        # be really sure also removing left-over files and dirs
  15.        for pyversion in 2.4 2.5; do
  16.                 if [ -d /usr/lib/python$pyversion/site-packages/multiprocessing/ ]; then
  17.                     rm -fr /usr/lib/python$pyversion/site-packages/numpy*
  18.                 fi
  19.             done
  20.        fi
  21. fi
  22.  
  23.  
  24.