From ef70e3d7e62671d0cadb2731e6965768f73ca290 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 3 Jan 2008 21:12:05 -0500 Subject: * Added configuration options for highlevel and lowlevel package managers in etckeeper.conf. * Only install apt hooks if apt is used. * Only add backup conffile exclusion to gitignore if dpkg is used. * Rename pre/post-apt.d to pre/post-install.d to allow the same directories to be used for other package managers. * Use the name of the highlevel package manager in commit messages. --- pre-apt.d/50uncommitted-changes | 22 ---------------------- pre-apt.d/README | 2 -- 2 files changed, 24 deletions(-) delete mode 100755 pre-apt.d/50uncommitted-changes delete mode 100644 pre-apt.d/README (limited to 'pre-apt.d') diff --git a/pre-apt.d/50uncommitted-changes b/pre-apt.d/50uncommitted-changes deleted file mode 100755 index d39401c..0000000 --- a/pre-apt.d/50uncommitted-changes +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -set -e -if [ -d .git ] && ! LANG=C git-status 2>&1 | grep -q "working directory clean"; then - . /usr/share/debconf/confmodule - db_capb escape - db_title etckeeper - - db_reset etckeeper/unclean || true - db_subst etckeeper/unclean STATUS $(git-status | debconf-escape -e) || true - db_input critical etckeeper/unclean || true - db_go || true - db_get etckeeper/unclean - if [ "$RET" = true ]; then - git add . - if ! git commit $GIT_COMMIT_OPTIONS -m "saving uncommitted changes in /etc prior to apt run"; then - db_input critical etckeeper/commit_failed || true - db_go || true - db_reset etckeeper/commit_failed || true - fi - fi - db_reset etckeeper/unclean || true -fi diff --git a/pre-apt.d/README b/pre-apt.d/README deleted file mode 100644 index 47001b4..0000000 --- a/pre-apt.d/README +++ /dev/null @@ -1,2 +0,0 @@ -Files in this directory are run before apt is run. This is mostly used for -sanity checks, ie, does /etc have any uncommitted changes? -- cgit v1.2.3