diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2018-01-05 21:04:40 +0100 |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2018-01-05 21:04:43 +0100 |
commit | 25e68c823355d2eedb39c297c128e5966214e347 (patch) | |
tree | e7caeb3cc0670c3fe088fe5935b1b03f1b3a1522 | |
parent | use scriptTemplate() in more places (diff) | |
download | tatt-25e68c823355d2eedb39c297c128e5966214e347.tar.gz tatt-25e68c823355d2eedb39c297c128e5966214e347.tar.bz2 tatt-25e68c823355d2eedb39c297c128e5966214e347.zip |
do not write "stable" in commit message for keywording bugs
-rw-r--r-- | templates/commit-header | 6 | ||||
-rw-r--r-- | templates/commit-snippet-2 | 2 |
2 files changed, 7 insertions, 1 deletions
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 |