aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2018-01-05 21:04:40 +0100
committerRolf Eike Beer <eike@sf-mail.de>2018-01-05 21:04:43 +0100
commit25e68c823355d2eedb39c297c128e5966214e347 (patch)
treee7caeb3cc0670c3fe088fe5935b1b03f1b3a1522
parentuse scriptTemplate() in more places (diff)
downloadtatt-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-header6
-rw-r--r--templates/commit-snippet-22
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