summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-06 12:54:47 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-06 12:54:47 -0500
commit74df694088c8ae1303434da70c4031b9a931c5c4 (patch)
tree45d761092191782b5f281ebfe63c5dd73a71d393
parent05bcb26cd53c4358c5590a7c5a39fe9afc7f221b (diff)
* Add backwards compatability code to handle post-apt action. Closes: #459441
-rw-r--r--debian/changelog1
-rwxr-xr-xetckeeper7
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index bdd2d8c..580d52a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
etckeeper (0.8) UNRELEASED; urgency=low
* Typo fixes from Miklos Vajna
+ * Add backwards compatability code to handle post-apt action. Closes: #459441
-- Joey Hess <joeyh@debian.org> Sat, 05 Jan 2008 00:42:11 -0500
diff --git a/etckeeper b/etckeeper
index e2073ec..81068a1 100755
--- a/etckeeper
+++ b/etckeeper
@@ -33,6 +33,13 @@ fi
command="$1"
shift 1
+# compatability code
+if [ "$command" = "post-apt" ]; then
+ command=post-install
+elif [ "$command" = "pre-apt" ]; then
+ command=pre-install
+fi
+
if [ ! -d "/etc/etckeeper/$command.d" ]; then
echo "etckeeper: /etc/etckeeper/$command.d does not exist" >&2
exit 1