---
hooks/post-repo-update/hook.py | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/hooks/post-repo-update/hook.py b/hooks/post-repo-update/hook.py
index 77024d4..646dcef 100644
--- a/hooks/post-repo-update/hook.py
+++ b/hooks/post-repo-update/hook.py
@@ -3,7 +3,19 @@
#
# Copyright 2009, Red Hat, Inc.
#
-# GPLv2+ boilerplate goes here
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Author: Will Woods <wwoods(a)redhat.com>
@@ -23,7 +35,9 @@ def extend_parser(parser):
return parser
def process_testlist(opts, args, testlist):
- if not opts.name.lower().startswith('rawhide'):
+ # Only advertise rats_sanity for branched* and rawhide* tests
+ name = opts.name.lower()
+ if not (name.startswith('rawhide') or name.startswith('branched'))
if 'rats_sanity' in testlist:
testlist.remove('rats_sanity')
return testlist
--
1.7.0.1