summaryrefslogtreecommitdiff
path: root/debian/perl.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/perl.postinst')
-rw-r--r--debian/perl.postinst18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/perl.postinst b/debian/perl.postinst
new file mode 100644
index 0000000..e8af453
--- /dev/null
+++ b/debian/perl.postinst
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+if [ "$1" = configure ]
+then
+ # rename (and prename) is now only provided by the rename package
+ update-alternatives --remove rename /usr/bin/prename
+
+ if which dpkg-trigger >/dev/null 2>&1 && \
+ [ -n "$2" ] && \
+ dpkg --compare-versions "$2" lt 5.30.0~
+ then
+ dpkg-trigger --no-await perl-major-upgrade
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0