requestsync: omit dups when checking for duplicate requests (LP: #842217)

This commit is contained in:
Julian Taylor 2011-09-06 01:15:41 +02:00
parent 328e7bb241
commit 36bc8ee0f7
2 changed files with 6 additions and 2 deletions

5
debian/changelog vendored
View File

@ -27,7 +27,10 @@ ubuntu-dev-tools (0.129) UNRELEASED; urgency=low
* get-build-deps: Tell aptitude not to follow Recommends (LP: #817500)
* doc/requestsync.1: Document the -C option (LP: #833408)
-- Stefano Rivera <stefanor@debian.org> Sat, 03 Sep 2011 21:04:38 +0200
[ Julian Taylor ]
* requestsync: omit dups when checking for duplicate requests (LP: #842217)
-- Julian Taylor <jtaylor.debian@googlemail.com> Tue, 06 Sep 2011 01:11:35 +0200
ubuntu-dev-tools (0.128) unstable; urgency=low

View File

@ -69,7 +69,8 @@ def checkExistingReports(srcpkg):
# Fetch the package's bug list from Launchpad
pkg = Distribution('ubuntu').getSourcePackage(name = srcpkg)
pkgBugList = pkg.getBugTasks()
pkgBugList = pkg.searchTasks(status=["New", "Confirmed", "Triaged"],
omit_duplicates=True)
# Search bug list for other sync requests.
for bug in pkgBugList: