summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-02-13 13:52:22 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-02-13 13:52:22 -0500
commit03a4aed6540049e3a9a95a65b57a434a52d4270a (patch)
treed1ed598e6ced387c7c67641603eb4b723c4e96bb /debian/postinst
parentdd0158e0f7cbb26db472d8c4da20d7dfa1e112f8 (diff)
Fix executable bits on two darcs support scripts.
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
index e4fb0b3..039c4c0 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -65,4 +65,11 @@ configure)
mv_conffile "/etc/etckeeper/init.d/20restore-metadata" \
"/etc/etckeeper/init.d/10restore-metadata"
fi
+ if dpkg --compare-versions "$2" le "0.28"; then
+ for c in commit.d/30darcs-add init.d/60darcs-deleted-symlinks; do
+ if [ -e /etc/etckeeper/$c ]; then
+ chmod +x /etc/etckeeper/$c
+ fi
+ done
+ fi
esac