Freeze break request: pkgdb_sync should only remove master from todo if it was requested
Kevin Fenzi
kevin at scrye.com
Wed Feb 25 13:41:41 UTC 2015
On Wed, 25 Feb 2015 06:36:27 -0500 (EST)
Patrick Uiterwijk <puiterwijk at redhat.com> wrote:
> Hi,
>
> So another freeze break request, +1s appreciated.
> This change is the only thing needed to make non-master-repos an
> option.
I'm pretty sure we don't want to decide to change this option during
freeze. ;)
> Currently, the code always removes master from the requested
> branches, and crashes if it wasn't there. I'm just adding a check to
> only remove it (and announce the package) if it was requested.
I guess +1 to this anyhow, as it could fix a error condition.
kevin
--
>
> commit d230b5701575879e757f2c4aeb8eed62c319d9e6
> Author: Patrick Uiterwijk <puiterwijk at redhat.com>
> Date: Wed Feb 25 11:34:07 2015 +0000
>
> Only remove master from request if it was requested
>
> Signed-off-by: Patrick Uiterwijk <puiterwijk at redhat.com>
>
> diff --git a/roles/distgit/templates/pkgdb_sync_git_branches.py
> b/roles/distgit/templates/pkgdb_sync_git_branches.py index
> c931d26..ced139b 100644 ---
> a/roles/distgit/templates/pkgdb_sync_git_branches.py +++
> b/roles/distgit/templates/pkgdb_sync_git_branches.py @@ -189,16
> +189,17 @@ def branch_package(pkgname, branches): if not
> os.path.exists( os.path.join(GIT_FOLDER, '%s.git' % pkgname)):
> _invoke(SETUP_PACKAGE, [pkgname])
> - branches.remove('master') # SETUP_PACKAGE creates master
> - fedmsg.publish(
> - topic='branch',
> - modname='git',
> - msg=dict(
> - agent='pkgdb',
> - name=pkgname,
> - branch='master',
> - ),
> - )
> + if 'master' in branches:
> + branches.remove('master') # SETUP_PACKAGE creates master
> + fedmsg.publish(
> + topic='branch',
> + modname='git',
> + msg=dict(
> + agent='pkgdb',
> + name=pkgname,
> + branch='master',
> + ),
> + )
>
> # Create all the required branches for the package
> # Use the translated branch name until pkgdb falls inline
>
>
>
> With kind regards,
> Patrick Uiterwijk
> Fedora Infra
>
> _______________________________________________
> infrastructure mailing list
> infrastructure at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/infrastructure
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20150225/94beedb5/attachment.sig>
More information about the infrastructure
mailing list