mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
move the _is_sigbranch check into the distgit directory class, and set the target appropriately
This commit is contained in:
parent
a1a2e22b97
commit
3ab1c85425
1 changed files with 2 additions and 8 deletions
|
@ -101,12 +101,6 @@ class Commands(Commands):
|
|||
|
||||
self.distgitdir = DistGitDirectory(self.branch_merge)
|
||||
|
||||
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):
|
||||
'''
|
||||
|
@ -149,12 +143,12 @@ class Commands(Commands):
|
|||
|
||||
# Distribution branches start with c and may or may not end in -plus
|
||||
# otherwise, it's a sig branch
|
||||
if not self._is_sigbranch():
|
||||
if not self.distgitdir.distrobranch:
|
||||
# send distribution packages to build on the the bananas tags for now
|
||||
self._target = 'bananas{0}-{1}'.format(self.distval, self.disttag)
|
||||
else:
|
||||
# sig packages are built in the tag that matches the git branch
|
||||
self._target = '{0}-el{1}'.format(self.branch_merge, self.distval)
|
||||
self._target = self.distgitdir.target
|
||||
|
||||
def load_user(self):
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue