From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: repoman/pym/repoman/
Date: Sat, 14 Jan 2017 19:10:06 +0000 (UTC) [thread overview]
Message-ID: <1484420901.c4d6482f1869a7a06e41dd2a95eee700b82fe027.floppym@gentoo> (raw)
commit: c4d6482f1869a7a06e41dd2a95eee700b82fe027
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 14 16:52:38 2017 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Jan 14 19:08:21 2017 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=c4d6482f
repoman: always add a newline if the message body is one line
The second line in a git commit message is supposed to be blank.
Also, use a regex to more exactly match a Field: value line.
Before:
dev-libs/libfoo: fix another bug
Package-Manager: Portage-2.3.3, Repoman-2.3.1
After:
dev-libs/libfoo: fix another bug
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Acked-by: Zac Medico <zmedico <AT> gentoo.org>
repoman/pym/repoman/actions.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/repoman/pym/repoman/actions.py b/repoman/pym/repoman/actions.py
index 58b00d4..6b0c645 100644
--- a/repoman/pym/repoman/actions.py
+++ b/repoman/pym/repoman/actions.py
@@ -6,6 +6,7 @@ import errno
import io
import logging
import platform
+import re
import signal
import sys
import tempfile
@@ -128,8 +129,9 @@ class Actions(object):
myupdates, mymanifests, myremoved, mychanged, myautoadd,
mynew, commitmessage)
- lastline = commitmessage.splitlines()[-1]
- if not ':' in lastline:
+ lines = commitmessage.splitlines()
+ lastline = lines[-1]
+ if len(lines) == 1 or re.match(r'^\S+:\s', lastline) is None:
commitmessage += '\n'
commit_footer = self.get_commit_footer()
next reply other threads:[~2017-01-14 19:10 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-14 19:10 Mike Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-03-30 17:23 [gentoo-commits] proj/portage:master commit in: repoman/pym/repoman/ Zac Medico
2018-02-27 19:07 Michał Górny
2018-02-27 19:07 Michał Górny
2017-08-06 6:54 Michał Górny
2017-07-18 23:08 Brian Dolbec
2017-03-15 21:56 Brian Dolbec
2017-03-01 19:22 Brian Dolbec
2017-03-01 18:40 Brian Dolbec
2017-01-14 14:23 Mike Gilbert
2017-01-13 17:13 Zac Medico
2017-01-06 17:17 Brian Dolbec
2017-01-06 17:17 Brian Dolbec
2017-01-06 17:17 Brian Dolbec
2016-12-06 3:54 Brian Dolbec
2016-10-11 18:54 Brian Dolbec
2016-09-15 18:46 Brian Dolbec
2016-09-15 18:46 Brian Dolbec
2016-06-30 5:54 Michał Górny
2016-06-28 15:34 Mike Frysinger
2016-06-24 6:38 Zac Medico
2016-05-15 23:51 Brian Dolbec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1484420901.c4d6482f1869a7a06e41dd2a95eee700b82fe027.floppym@gentoo \
--to=floppym@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox