summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-01-07 15:54:20 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-01-07 15:54:20 +0100
commit7d8f59d286aba11a88b4a877d2e07662e2e28c56 (patch)
treee5ba3468cd6f2b625458a5e36466b523b1f84bc5
parent1c799675c0cc46009ff41667f047d8cf6310748c (diff)
downloadqt4-x11-7d8f59d286aba11a88b4a877d2e07662e2e28c56.tar.gz
Remove alternatives on upgrade
Remove alternatives for qt4 dev binaries on upgrade since co-installation is now handled by qtchooser.
-rw-r--r--debian/libqt4-dev-bin.prerm12
-rw-r--r--debian/qt4-designer.prerm11
-rw-r--r--debian/qt4-dev-tools.prerm12
-rw-r--r--debian/qt4-linguist-tools.prerm12
-rw-r--r--debian/qt4-qmake.prerm11
-rw-r--r--debian/qt4-qtconfig.prerm11
6 files changed, 69 insertions, 0 deletions
diff --git a/debian/libqt4-dev-bin.prerm b/debian/libqt4-dev-bin.prerm
new file mode 100644
index 0000000..dde1e75
--- /dev/null
+++ b/debian/libqt4-dev-bin.prerm
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ upgrade|remove|failed-upgrade|deconfigure)
+ update-alternatives --remove moc "/usr/bin/moc-qt4"
+ update-alternatives --remove uic "/usr/bin/uic-qt4"
+ ;;
+esac
+
+#DEBHELPER#
diff --git a/debian/qt4-designer.prerm b/debian/qt4-designer.prerm
new file mode 100644
index 0000000..86bf6f1
--- /dev/null
+++ b/debian/qt4-designer.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ upgrade|remove|failed-upgrade|deconfigure)
+ update-alternatives --remove designer "/usr/bin/designer-qt4"
+ ;;
+esac
+
+#DEBHELPER#
diff --git a/debian/qt4-dev-tools.prerm b/debian/qt4-dev-tools.prerm
new file mode 100644
index 0000000..5c158fc
--- /dev/null
+++ b/debian/qt4-dev-tools.prerm
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ upgrade|remove|failed-upgrade|deconfigure)
+ update-alternatives --remove assistant "/usr/bin/assistant-qt4"
+ update-alternatives --remove linguist "/usr/bin/linguist-qt4"
+ ;;
+esac
+
+#DEBHELPER#
diff --git a/debian/qt4-linguist-tools.prerm b/debian/qt4-linguist-tools.prerm
new file mode 100644
index 0000000..bbb5ad4
--- /dev/null
+++ b/debian/qt4-linguist-tools.prerm
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ upgrade|remove|failed-upgrade|deconfigure)
+ update-alternatives --remove lupdate "/usr/bin/lupdate-qt4"
+ update-alternatives --remove lrelease "/usr/bin/lrelease-qt4"
+ ;;
+esac
+
+#DEBHELPER#
diff --git a/debian/qt4-qmake.prerm b/debian/qt4-qmake.prerm
new file mode 100644
index 0000000..426ec39
--- /dev/null
+++ b/debian/qt4-qmake.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ upgrade|remove|failed-upgrade|deconfigure)
+ update-alternatives --remove qmake "/usr/bin/qmake-qt4"
+ ;;
+esac
+
+#DEBHELPER#
diff --git a/debian/qt4-qtconfig.prerm b/debian/qt4-qtconfig.prerm
new file mode 100644
index 0000000..088ffda
--- /dev/null
+++ b/debian/qt4-qtconfig.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ upgrade|remove|failed-upgrade|deconfigure)
+ update-alternatives --remove qtconfig "/usr/bin/qtconfig-qt4"
+ ;;
+esac
+
+#DEBHELPER#