commit:     bbb34efebd0bfc0b231073d00b863b3e3ebd918a
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Sun Aug 10 10:31:29 2014 +0000
Commit:     Arfrever Frehtes Taifersar Arahesis <arfrever <AT> apache <DOT> org>
CommitDate: Sun Aug 10 10:31:29 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=bbb34efe

repoman: Do not report DESCRIPTION.punctuation warning for "etc.".

---
 bin/repoman | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bin/repoman b/bin/repoman
index 71fc7f0..bd9ad15 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1895,7 +1895,11 @@ for x in effective_scanlist:
                                        stats[myqakey] += 1
                                        fails[myqakey].append(relative_path)
 
-               if myaux['DESCRIPTION'][-1:] in ['.']:
+               # Abbreviations usable at the end of sentence.
+               abbreviations = (
+                       'etc.',
+               )
+               if myaux['DESCRIPTION'][-1:] == '.' and not 
myaux['DESCRIPTION'].split()[-1] in abbreviations:
                        stats['DESCRIPTION.punctuation'] += 1
                        fails['DESCRIPTION.punctuation'].append(
                                "%s: DESCRIPTION ends with a '%s' character"

Reply via email to