From 25e68c823355d2eedb39c297c128e5966214e347 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Fri, 5 Jan 2018 21:04:40 +0100 Subject: do not write "stable" in commit message for keywording bugs --- templates/commit-header | 6 ++++++ templates/commit-snippet-2 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/commit-header b/templates/commit-header index 538a6c9..76f65b4 100644 --- a/templates/commit-header +++ b/templates/commit-header @@ -1,2 +1,8 @@ #!/bin/bash pushd @@REPODIR@@ > /dev/null + +if [ "@@NEWKEYWORD@@" = "@@ARCH" ]; then + DESCR="@@ARCH@@ stable (bug #@@BUG@@)" +else + DESCR="@@ARCH@@ keyworded (bug #@@BUG@@)" +fi diff --git a/templates/commit-snippet-2 b/templates/commit-snippet-2 index 1dd7df8..577db3b 100644 --- a/templates/commit-snippet-2 +++ b/templates/commit-snippet-2 @@ -2,6 +2,6 @@ pushd @@CP@@ > /dev/null repoman -d full || exit 1 -repoman -m "@@CP@@: @@NEWKEYWORD@@ stable (bug #@@BUG@@)" commit || exit 1 +repoman -m "@@CP@@: ${DESCR}" commit || exit 1 popd > /dev/null -- cgit v1.2.3-65-gdbad