summaryrefslogtreecommitdiff
path: root/debian/ept-cache.postinst
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/ept-cache.postinst
parent6f8645c1dfd1d967a929aa5a3fbcb2e7503293a5 (diff)
downloadlibept-9e7d767a9af5fa2f18cbd12b8f81dc3b0253f938.tar.gz
Test for dpkg-maintscript-helper existance before invoking it. Closes: #590220
Diffstat (limited to 'debian/ept-cache.postinst')
-rw-r--r--debian/ept-cache.postinst3
1 files changed, 2 insertions, 1 deletions
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