From 7f0f327c3d7b78ce005d6abb4899aafce3c7819e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 13 Jan 2017 11:58:05 +0100 Subject: [PATCH] Fix the ExcludeArch pattern and add two more --- roles/git/hooks/files/post-receive-alternativearch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/git/hooks/files/post-receive-alternativearch b/roles/git/hooks/files/post-receive-alternativearch index e2fd8729ef..15706f3961 100755 --- a/roles/git/hooks/files/post-receive-alternativearch +++ b/roles/git/hooks/files/post-receive-alternativearch @@ -17,7 +17,7 @@ import sys from email.mime.text import MIMEText abspath = os.path.abspath(os.environ['GIT_DIR']) -PATTERNS = ('+ExclusiveArch:', '+ExcludesArch:') +PATTERNS = ('+ExclusiveArch:', '+ExcludeArch:', '+ifarch', '+ifnarch') FROM_EMAIL = 'githook-noreply@fedoraproject.org' TO_MAIL = 'arch-excludes@lists.fedoraproject.org' CGIT_URL = 'http://pkgs.fedoraproject.org/cgit/%s/commit/?id=%s'