lp-mark-bugs-released revision ac4dc8c32116eb4089277fd2ef8c3e4700a429a2
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce# Copyright (c) 2010 Canonical Ltd.
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce# This program is free software; you can redistribute it and/or modify it
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce# under the terms of the GNU General Public License version 3 as published
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce# by the # Free Software Foundation
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce# lp-mark-bugs-released is distributed in the hope that it will be useful, but
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce# WITHOUT ANY WARRANTY; without even the implied warranty of
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce# General Public License for more details.
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce'''Mark bugs that are Fix Committed on a release to be Fix Released'''
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce print "Marking bug " + str(bug.bug.id) + " as 'Fix Released'"
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce print >> sys.stderr, '''Mark bugs 'Fix Committed' on a release as released
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce launchpad = Launchpad.login_with('ubuntu-dev-tools', 'production')
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce print >> sys.stderr, 'Could not connect to Launchpad:', str(error)
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce # Look up the project using the Launchpad instance.
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce # Find the release in the project's releases collection.
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce print >> sys.stderr, '''Unable to find release: %s''' % version
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce # Mark any fix committed bugs released
9091c524d0acf0836cd2cdb53903bb8abaa92df2bryce for task in release.milestone.searchTasks(status="Fix Committed"):