* Add backwards compatability code to handle post-apt action. Closes: #459441
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 6 Jan 2008 17:54:47 +0000 (12:54 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 6 Jan 2008 17:54:47 +0000 (12:54 -0500)
debian/changelog
etckeeper

index bdd2d8cc3008c0948d4eb44eddb377f1f6f11da3..580d52a6d1414d116c09cf0399bcc05963922ed3 100644 (file)
@@ -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
 
index e2073ec0ad597247f113476edabfd55192770edb..81068a1b0bc7c8413ebfbb9eb860398cc47a708d 100755 (executable)
--- 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