summaryrefslogtreecommitdiff
path: root/post-install.d/50vcs-commit
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-11-05 11:16:37 -0400
committerJoey Hess <joey@kitenet.net>2014-11-05 11:16:37 -0400
commit80a7b7fb320a907a60a270070d495b1122904e7a (patch)
treecd3eaae41850941ea26007a10cecf8c2a3f2b547 /post-install.d/50vcs-commit
parent6335925c321c39aad3556d7afb5651902659c559 (diff)
add format marker for package list
to avoid spamming commit message with big diff when format changes
Diffstat (limited to 'post-install.d/50vcs-commit')
-rwxr-xr-xpost-install.d/50vcs-commit6
1 files changed, 2 insertions, 4 deletions
diff --git a/post-install.d/50vcs-commit b/post-install.d/50vcs-commit
index 36f3ee4..53138c8 100755
--- a/post-install.d/50vcs-commit
+++ b/post-install.d/50vcs-commit
@@ -7,7 +7,7 @@ if etckeeper unclean; then
message="committing changes in /etc after $HIGHLEVEL_PACKAGE_MANAGER run"
set +e
- if [ -e $pl.pre-install ]; then
+ if [ -e $pl.pre-install ] && [ "$(cat $pl.fmt 2>/dev/null || true)" = "$(etckeeper list-installed fmt)" ]; then
(
echo "$message"
echo
@@ -25,6 +25,4 @@ if etckeeper unclean; then
fi
fi
-if [ -e $pl.pre-install ]; then
- rm -f $pl.pre-install
-fi
+rm -f $pl.pre-install $pl.fmt