summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorEnrico Zini <enrico@enricozini.org>2011-03-20 19:18:53 +0000
committerEnrico Zini <enrico@enricozini.org>2011-03-20 19:18:53 +0000
commit9e7d767a9af5fa2f18cbd12b8f81dc3b0253f938 (patch)
tree31b8c7ebef08cbfadc5e8cf87c43a873d750529c /debian
parent6f8645c1dfd1d967a929aa5a3fbcb2e7503293a5 (diff)
downloadlibept-9e7d767a9af5fa2f18cbd12b8f81dc3b0253f938.tar.gz
Test for dpkg-maintscript-helper existance before invoking it. Closes: #590220
Diffstat (limited to 'debian')
-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