requestsync: Only attempt to change bug importance if in ubuntu-dev, as it

will fail otherwise.
This commit is contained in:
Iain Lane 2009-01-25 00:15:06 +00:00
parent 44d1d459da
commit 304cd20e8e
2 changed files with 9 additions and 2 deletions

7
debian/changelog vendored
View File

@ -1,10 +1,15 @@
ubuntu-dev-tools (0.60) UNRELEASED; urgency=low
[ Jonathan Davies ]
* ubuntutools/common.py: Now split into multiple files depending on
function.
* Adjusted imports on all files as necessary for the change above.
-- Jonathan Davies <jpds@ubuntu.com> Mon, 19 Jan 2009 18:00:15 +0000
[ Iain Lane ]
* requestsync: Only attempt to change bug importance if in ubuntu-dev, as it
will fail otherwise.
-- Iain Lane <laney@ubuntu.com> Sun, 25 Jan 2009 00:14:23 +0000
ubuntu-dev-tools (0.59) jaunty; urgency=low

View File

@ -389,7 +389,9 @@ def post_bug(source_package, subscribe, status, bugtitle, bugtext):
#newly created bugreports have one task
task = bug.bug_tasks[0]
task.transitionToImportance(importance='Wishlist')
# Only members of ubuntu-bugs can set importance
if lp_functions.isLPTeamMember('ubuntu-bugs'):
task.transitionToImportance(importance='Wishlist')
task.transitionToStatus(status=status)
subscribe_url = "%s~%s" %(launchpad._root_uri, subscribe)