Fix detecting %ifarch/%ifnarch upon commit and improve the email content
This commit is contained in:
parent
4fe0981401
commit
083901a312
1 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ import sys
|
||||||
from email.mime.text import MIMEText
|
from email.mime.text import MIMEText
|
||||||
|
|
||||||
abspath = os.path.abspath(os.environ['GIT_DIR'])
|
abspath = os.path.abspath(os.environ['GIT_DIR'])
|
||||||
PATTERNS = ('+ExclusiveArch:', '+ExcludeArch:', '+ifarch', '+ifnarch')
|
PATTERNS = ('+ExclusiveArch:', '+ExcludeArch:', '+%ifarch', '+%ifnarch')
|
||||||
FROM_EMAIL = 'githook-noreply@fedoraproject.org'
|
FROM_EMAIL = 'githook-noreply@fedoraproject.org'
|
||||||
TO_MAIL = 'arch-excludes@lists.fedoraproject.org'
|
TO_MAIL = 'arch-excludes@lists.fedoraproject.org'
|
||||||
CGIT_URL = 'http://pkgs.fedoraproject.org/cgit/%s/commit/?id=%s'
|
CGIT_URL = 'http://pkgs.fedoraproject.org/cgit/%s/commit/?id=%s'
|
||||||
|
@ -27,8 +27,8 @@ SMTP_PORT = 25
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
||||||
TEXT = u"""
|
TEXT = u"""
|
||||||
The package %(pkg)s has added or updated either ExclusiveArch or ExcludesArch
|
The package %(pkg)s has added or updated architecture specific content in its
|
||||||
in commit(s):
|
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
|
||||||
%(url)s.
|
%(url)s.
|
||||||
|
|
||||||
Change:
|
Change:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue