python-ckanext-archiver.preinst 455 B

1234567891011121314
  1. #! /bin/sh
  2. set -e
  3. # This was added by stdeb to workaround Debian #479852. In a nutshell,
  4. # pycentral does not remove normally remove its symlinks on an
  5. # upgrade. Since we're using python-support, however, those symlinks
  6. # will be broken. This tells python-central to clean up any symlinks.
  7. if [ -e /var/lib/dpkg/info/python-ckanext-archiver.list ] && which pycentral >/dev/null 2>&1
  8. then
  9. pycentral pkgremove python-ckanext-archiver
  10. fi
  11. #DEBHELPER#