post-receive-alternativearch - catch removals too

Currently the patterns can catch ExcludeArch & co additions and changes
in the spec file, but not a clean removal.
This commit is contained in:
Dan Horák 2017-05-09 09:30:08 +02:00 committed by Pierre-Yves Chibon
parent af2fac3977
commit 333a155ba9

View file

@ -17,7 +17,8 @@ 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',
'-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 = 'https://src.fedoraproject.org/cgit/%s/commit/?id=%s' CGIT_URL = 'https://src.fedoraproject.org/cgit/%s/commit/?id=%s'