diff options
author | Joey Hess <joey@kitenet.net> | 2014-11-05 11:16:37 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-11-05 11:16:37 -0400 |
commit | 80a7b7fb320a907a60a270070d495b1122904e7a (patch) | |
tree | cd3eaae41850941ea26007a10cecf8c2a3f2b547 /post-install.d/50vcs-commit | |
parent | 6335925c321c39aad3556d7afb5651902659c559 (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-x | post-install.d/50vcs-commit | 6 |
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 |