# Copyright (c) 2010 Canonical Ltd.
#
# under the terms of the GNU General Public License version 3 as published
# by the # Free Software Foundation
#
# lp-mark-bugs-released is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
'''Mark bugs that are Fix Committed on a release to be Fix Released'''
if bug.status == 'Fix Committed':
bug.status = "Fix Released"
if not opt_dry_run:
sys.exit(1)
try:
sys.exit(2)
try:
# Look up the project using the Launchpad instance.
# Find the release in the project's releases collection.
if rel.version == version:
break
sys.exit(1)
# Mark any fix committed bugs released
else:
print 'An error happened in the upload: %s\n%s' %(
sys.exit(1)
if __name__ == '__main__':
main()