aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2014-08-10 12:31:29 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2014-08-10 12:31:29 +0200
commitbbb34efebd0bfc0b231073d00b863b3e3ebd918a (patch)
treec2e69e958ffde955a4f783e9dad5b62147335ba3 /bin
parentemake: pass EXTRA_EMAKE after user's "$@", not before (diff)
downloadportage-bbb34efebd0bfc0b231073d00b863b3e3ebd918a.tar.gz
portage-bbb34efebd0bfc0b231073d00b863b3e3ebd918a.tar.bz2
portage-bbb34efebd0bfc0b231073d00b863b3e3ebd918a.zip
repoman: Do not report DESCRIPTION.punctuation warning for "etc.".
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 71fc7f038..bd9ad1585 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"