mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 08:12:55 +00:00
add a method to tell if we are operating on a sig branch
This commit is contained in:
parent
b63384a593
commit
08ebc1b21d
1 changed files with 6 additions and 0 deletions
|
@ -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):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue