summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog4
-rw-r--r--debian/ept-cache.postinst3
-rw-r--r--debian/ept-cache.postrm3
-rw-r--r--debian/ept-cache.preinst3
-rw-r--r--debian/ept-cache.prerm3
5 files changed, 11 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index 9f26856..0ed83be 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,10 @@ libept (1.0.5) unstable; urgency=low
* Do not ship .m4 file anymore, as it's just a trivial invocation of
pkg-config
+ * Test for dpkg-maintscript-helper existance before invoking it.
+ Closes: #590220
- -- Enrico Zini <enrico@debian.org> Sun, 20 Mar 2011 18:56:42 +0000
+ -- Enrico Zini <enrico@debian.org> Sun, 20 Mar 2011 19:18:34 +0000
libept (1.0.4) unstable; urgency=low
diff --git a/debian/ept-cache.postinst b/debian/ept-cache.postinst
index 57e0d8d..a43d119 100644
--- a/debian/ept-cache.postinst
+++ b/debian/ept-cache.postinst
@@ -9,7 +9,8 @@ if [ "$1" = "configure" ]; then
fi
fi
-if dpkg-maintscript-helper supports rm_conffile; then
+# FIXME: remove test when we are not interested in lenny anymore
+if test -x /usr/bin/dpkg-maintscript-helper && dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile /etc/cron.weekly/ept-cache 1.0.1 -- "$@"
fi
diff --git a/debian/ept-cache.postrm b/debian/ept-cache.postrm
index 9b3e40f..90d458c 100644
--- a/debian/ept-cache.postrm
+++ b/debian/ept-cache.postrm
@@ -2,7 +2,8 @@
set -e
-if dpkg-maintscript-helper supports rm_conffile; then
+# FIXME: remove test when we are not interested in lenny anymore
+if test -x /usr/bin/dpkg-maintscript-helper && dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile /etc/cron.weekly/ept-cache 1.0.1 -- "$@"
fi
diff --git a/debian/ept-cache.preinst b/debian/ept-cache.preinst
index 9b3e40f..90d458c 100644
--- a/debian/ept-cache.preinst
+++ b/debian/ept-cache.preinst
@@ -2,7 +2,8 @@
set -e
-if dpkg-maintscript-helper supports rm_conffile; then
+# FIXME: remove test when we are not interested in lenny anymore
+if test -x /usr/bin/dpkg-maintscript-helper && dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile /etc/cron.weekly/ept-cache 1.0.1 -- "$@"
fi
diff --git a/debian/ept-cache.prerm b/debian/ept-cache.prerm
index 9b3e40f..90d458c 100644
--- a/debian/ept-cache.prerm
+++ b/debian/ept-cache.prerm
@@ -2,7 +2,8 @@
set -e
-if dpkg-maintscript-helper supports rm_conffile; then
+# FIXME: remove test when we are not interested in lenny anymore
+if test -x /usr/bin/dpkg-maintscript-helper && dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile /etc/cron.weekly/ept-cache 1.0.1 -- "$@"
fi