summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan HorĂ¡k <dan@danny.cz>2017-05-09 09:30:08 +0200
committerPierre-Yves Chibon <pingou@pingoured.fr>2017-07-25 10:57:44 +0200
commit333a155ba9bc8a90ef3b08404ba847dda878f997 (patch)
tree812523cf094fb6fa2505d11d6ff513fdf7304cfc
parentaf2fac397720b7821dee043b082e8dedde163030 (diff)
downloadansible-333a155ba9bc8a90ef3b08404ba847dda878f997.tar.gz
ansible-333a155ba9bc8a90ef3b08404ba847dda878f997.tar.xz
ansible-333a155ba9bc8a90ef3b08404ba847dda878f997.zip
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.
-rwxr-xr-xroles/git/hooks/files/post-receive-alternativearch3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/git/hooks/files/post-receive-alternativearch b/roles/git/hooks/files/post-receive-alternativearch
index 4b23fb231..16d8cef4d 100755
--- a/roles/git/hooks/files/post-receive-alternativearch
+++ b/roles/git/hooks/files/post-receive-alternativearch
@@ -17,7 +17,8 @@ import sys
from email.mime.text import MIMEText
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'
TO_MAIL = 'arch-excludes@lists.fedoraproject.org'
CGIT_URL = 'https://src.fedoraproject.org/cgit/%s/commit/?id=%s'