From 80a7b7fb320a907a60a270070d495b1122904e7a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 5 Nov 2014 11:16:37 -0400 Subject: add format marker for package list to avoid spamming commit message with big diff when format changes --- post-install.d/50vcs-commit | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'post-install.d/50vcs-commit') 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 -- cgit v1.2.3