summaryrefslogtreecommitdiffstats
path: root/ubuntu/precise/dependencies/python-tqt/debian/python-tqt-dev.preinst
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-08-27 04:57:39 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-08-27 05:00:17 +0200
commit2d0d0ba99b507cab093962cb910ddc7dd4755c94 (patch)
tree25732cac7c5450d1df2efe47d153253bec8a83be /ubuntu/precise/dependencies/python-tqt/debian/python-tqt-dev.preinst
parente59f9132f600c669c73885b0b58a715e6bfd03a6 (diff)
downloadtde-packaging-2d0d0ba99b507cab093962cb910ddc7dd4755c94.tar.gz
tde-packaging-2d0d0ba99b507cab093962cb910ddc7dd4755c94.zip
Switch to dh_python2 (or dh_pysupport as fallback) on Debian and Ubuntu
Diffstat (limited to 'ubuntu/precise/dependencies/python-tqt/debian/python-tqt-dev.preinst')
-rw-r--r--ubuntu/precise/dependencies/python-tqt/debian/python-tqt-dev.preinst35
1 files changed, 0 insertions, 35 deletions
diff --git a/ubuntu/precise/dependencies/python-tqt/debian/python-tqt-dev.preinst b/ubuntu/precise/dependencies/python-tqt/debian/python-tqt-dev.preinst
deleted file mode 100644
index b17b35a44..000000000
--- a/ubuntu/precise/dependencies/python-tqt/debian/python-tqt-dev.preinst
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-# TODO: remove this file after releasing Squeeze
-set -e
-if [ "$1" = upgrade ]
-then
- if dpkg --compare-versions "$2" lt 3.17.6-2; then
- if which python >/dev/null 2>&1 && which pycentral >/dev/null 2>&1; then
- pycentral pkgremove python-qt-dev
- else
- flist=$(tempfile)
- find /usr/share/pycentral/python-qt-dev -depth -mindepth 2 \
- \( -name '*.py' -printf 'p %P\n' -o -printf '%y %P\n' \) \
- > $flist 2>/dev/null || true
- if [ -s $flist ]; then
- for d in /usr/lib/python[0-9].[0-9]; do
- case "$d" in */python2.1|*/python2.2) continue; esac
- while read t n; do
- case "$t" in
- p) rm -f $d/$n $d/${n}[co];;
- d) rmdir $d/$n 2>/dev/null || true;;
- *) rm -f $d/$n
- esac
- done < $flist
- done
- fi
- rm -f $flist
- dpkg -L python-qt-dev \
- | awk '/\/usr\/share\/pycentral/ {next} /\.py$/ {print $0"c\n" $0"o"}' \
- | xargs rm -f >&2
- fi
- fi
-fi
-
-#DEBHELPER#
-