release = last_release = rel elif tag == rel.stable_tag: flash("Error: %s is already tagged with %s" % (build, tag)) if request_format() == "json": return dict() raise redirect("/override/new") if not release: flash("Error: Could not determine release for %s with tags %s" % (build, map(str, tags))) if request_format() == "json": return dict() raise redirect("/override/new") # Make sure the user has commit rights to the appropriate branch try: people, groups = get_pkg_pushers(n, release.branchname) except Exception, e: flash(str(e)) if request_format() == "json": return dict() raise redirect("/override/new") if identity.current.user_name not in people[0]: if "provenpackager" not in identity.current.groups: flash("Error: You do not have commit privileges to %s" % n) if request_format() == "json": return dict() raise redirect("/override/new") # Create a new overrides object try:
flash( 'Error: Could not determine release for %s with tags %s' % (build, map(str, tags))) if request_format() == 'json': return dict() raise redirect('/override/new') # Make sure the user has commit rights to the appropriate branch pkgdb_args = { 'collectionName': 'Fedora', 'collectionVersion': 'devel', } pkgdb_args['collectionName'] = release.collection_name pkgdb_args['collectionVersion'] = str(release.get_version()) try: people, groups = get_pkg_pushers(n, **pkgdb_args) except Exception, e: flash(str(e)) if request_format() == 'json': return dict() raise redirect('/override/new') if identity.current.user_name not in people[0]: flash("Error: You do not have commit privileges to %s" % n) if request_format() == 'json': return dict() raise redirect('/override/new') # Create a new overrides object try: override = BuildRootOverride( build=build, notes=notes, submitter=identity.current.user_name,
if not release: flash('Error: Could not determine release for %s with tags %s' % (build, map(str, tags))) if request_format() == 'json': return dict() raise redirect('/override/new') # Make sure the user has commit rights to the appropriate branch pkgdb_args = { 'collectionName': 'Fedora', 'collectionVersion': 'devel', } pkgdb_args['collectionName'] = release.collection_name pkgdb_args['collectionVersion'] = str(release.get_version()) try: people, groups = get_pkg_pushers(n, **pkgdb_args) except Exception, e: flash(str(e)) if request_format() == 'json': return dict() raise redirect('/override/new') if identity.current.user_name not in people[0]: if 'provenpackager' not in identity.current.groups: flash("Error: You do not have commit privileges to %s" % n) if request_format() == 'json': return dict() raise redirect('/override/new') # Create a new overrides object try: override = BuildRootOverride(build=build, notes=notes, submitter=identity.current.user_name,
elif tag == rel.stable_tag: flash('Error: %s is already tagged with %s' % (build, tag)) if request_format() == 'json': return dict() raise redirect('/override/new') if not release: flash( 'Error: Could not determine release for %s with tags %s' % (build, map(str, tags))) if request_format() == 'json': return dict() raise redirect('/override/new') # Make sure the user has commit rights to the appropriate branch try: people, groups = get_pkg_pushers(n, release.branchname) except Exception, e: flash(str(e)) if request_format() == 'json': return dict() raise redirect('/override/new') if identity.current.user_name not in people[0]: if 'provenpackager' not in identity.current.groups: flash("Error: You do not have commit privileges to %s" % n) if request_format() == 'json': return dict() raise redirect('/override/new') # Create a new overrides object try: override = BuildRootOverride( build=build,