home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / python-dbus.postinst < prev    next >
Encoding:
Text File  |  2007-02-19  |  838 b   |  22 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "0.71-3"; then
  6.     echo "Remove stale byte-compiled files..."
  7.     rm -f /usr/lib/python2.[45]/site-packages/dbus.pyc
  8.     rm -f /usr/lib/python2.[45]/site-packages/dbus.pyo
  9.     rm -f /usr/lib/python2.[45]/site-packages/dbus/*.pyc
  10.     rm -f /usr/lib/python2.[45]/site-packages/dbus/*.pyo
  11.     test -e /usr/lib/python2.4/site-packages/dbus && rmdir --ignore-fail-on-non-empty /usr/lib/python2.4/site-packages/dbus
  12.     test -e /usr/lib/python2.5/site-packages/dbus && rmdir --ignore-fail-on-non-empty /usr/lib/python2.5/site-packages/dbus
  13. fi
  14.  
  15. # Automatically added by dh_pysupport
  16. if [ "$1" = "configure" ] && which update-python-modules >/dev/null 2>&1; then
  17.     update-python-modules -i /usr/share/python-support/python-dbus
  18. fi
  19. # End automatically added section
  20.  
  21.  
  22.