From 08ebc1b21d93f8eae31281af64ef434b181288f5 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Nov 24 2014 04:50:39 +0000 Subject: add a method to tell if we are operating on a sig branch --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index e35c43a..a413997 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -39,6 +39,12 @@ class Commands(pyrpkg.Commands): branchre, kojiconfig, build_client, user, dist, target, quiet) + def _is_sigbranch(self): + # if the current branch is not in the form c, c-plus, + # or c-extras it's a sig branch + + return not re.match('^c\d(-plus|-extras)*$', self.branch_merge) + # redefined loaders def load_rpmdefines(self): '''