Only remove master from request if it was requested
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
54097dc186
commit
12e10d8279
1 changed files with 11 additions and 10 deletions
|
@ -189,16 +189,17 @@ def branch_package(pkgname, branches):
|
||||||
if not os.path.exists(
|
if not os.path.exists(
|
||||||
os.path.join(GIT_FOLDER, '%s.git' % pkgname)):
|
os.path.join(GIT_FOLDER, '%s.git' % pkgname)):
|
||||||
_invoke(SETUP_PACKAGE, [pkgname])
|
_invoke(SETUP_PACKAGE, [pkgname])
|
||||||
branches.remove('master') # SETUP_PACKAGE creates master
|
if 'master' in branches:
|
||||||
fedmsg.publish(
|
branches.remove('master') # SETUP_PACKAGE creates master
|
||||||
topic='branch',
|
fedmsg.publish(
|
||||||
modname='git',
|
topic='branch',
|
||||||
msg=dict(
|
modname='git',
|
||||||
agent='pkgdb',
|
msg=dict(
|
||||||
name=pkgname,
|
agent='pkgdb',
|
||||||
branch='master',
|
name=pkgname,
|
||||||
),
|
branch='master',
|
||||||
)
|
),
|
||||||
|
)
|
||||||
|
|
||||||
# Create all the required branches for the package
|
# Create all the required branches for the package
|
||||||
# Use the translated branch name until pkgdb falls inline
|
# Use the translated branch name until pkgdb falls inline
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue