add a method to tell if we are operating on a sig branch

This commit is contained in:
Brian Stinson 2014-11-23 22:50:39 -06:00
parent b63384a593
commit 08ebc1b21d

View file

@ -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<version>, c<version>-plus,
# or c<version>-extras it's a sig branch
return not re.match('^c\d(-plus|-extras)*$', self.branch_merge)
# redefined loaders
def load_rpmdefines(self):
'''