summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-04 18:03:13 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-04 18:03:13 -0500
commit2e7110a31815c500ff6de321d5c83c3c5529de53 (patch)
tree45ef1c83ff26412d0627ee9f6a0aace4151c4dfd /debian/postinst
parent788ae5a34c0fad2e3c0788a745400a138d735195 (diff)
updates for mercurial
Changed the templates file to not hardcode 'git', and manually unfuzzied all translations except for Vietnamese, which stumped me. A few translations _may_ read incorrectly when VCS=hg, most should be ok. Updated git-specific documentation, but left the tutorial git-specific. Rename more conffiles. Joy oh, joy. Update dependencies. Add some more documentation about etckeeper.conf.
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst30
1 files changed, 24 insertions, 6 deletions
diff --git a/debian/postinst b/debian/postinst
index 33891dd..ef872b3 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -22,16 +22,34 @@ case "$1" in
configure)
if dpkg --compare-versions "$2" le "0.7"; then
if [ -d /etc/etckeeper/pre-apt.d ]; then
- for c in README 50uncommitted-changes; do
- mv_conffile "/etc/etckeeper/pre-apt.d/$c" "/etc/etckeeper/pre-install.d/$c"
- done
+ mv_conffile "/etc/etckeeper/pre-apt.d/README" \
+ "/etc/etckeeper/pre-install.d/README"
+ mv_conffile "/etc/etckeeper/pre-apt.d/50uncommitted-changes" \
+ "/etc/etckeeper/pre-install.d/50uncommitted-changes"
rmdir --ignore-fail-on-non-empty /etc/etckeeper/pre-apt.d
fi
if [ -d /etc/etckeeper/post-apt.d ]; then
- for c in README 10git-test 30git-add 40git-rm 50git-commit; do
- mv_conffile "/etc/etckeeper/post-apt.d/$c" "/etc/etckeeper/post-install.d/$c"
- done
+ mv_conffile "/etc/etckeeper/post-apt.d/README" \
+ "/etc/etckeeper/post-install.d/README"
+ mv_conffile "/etc/etckeeper/post-apt.d/10git-test" \
+ "/etc/etckeeper/post-install.d/10vcs-test"
+ mv_conffile "/etc/etckeeper/post-apt.d/30git-add" \
+ "/etc/etckeeper/post-install.d/30git-add"
+ mv_conffile "/etc/etckeeper/post-apt.d/40git-rm" \
+ "/etc/etckeeper/post-install.d/40git-rm"
+ mv_conffile "/etc/etckeeper/post-apt.d/50git-commit" \
+ "/etc/etckeeper/post-install.d/50vcs-commit"
rmdir --ignore-fail-on-non-empty /etc/etckeeper/post-apt.d
fi
+ mv_conffile "/etc/etckeeper/init.d/40git-init" \
+ "/etc/etckeeper/init.d/40vcs-init"
+ mv_conffile "/etc/etckeeper/init.d/50git-ignore" \
+ "/etc/etckeeper/init.d/50vcs-ignore"
+ mv_conffile "/etc/etckeeper/init.d/50git-perm" \
+ "/etc/etckeeper/init.d/50vcs-perm"
+ mv_conffile "/etc/etckeeper/init.d/50git-pre-commit-hook" \
+ "/etc/etckeeper/init.d/50vcs-pre-commit-hook"
+ mv_conffile "/etc/etckeeper/init.d/70git-add" \
+ "/etc/etckeeper/init.d/70git-add"
fi
esac