diff --git a/debian/changelog b/debian/changelog index b19c6fe..17d4389 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sat, 03 Sep 2011 21:04:38 +0200 + [ Julian Taylor ] + * requestsync: omit dups when checking for duplicate requests (LP: #842217) + + -- Julian Taylor Tue, 06 Sep 2011 01:11:35 +0200 ubuntu-dev-tools (0.128) unstable; urgency=low diff --git a/ubuntutools/requestsync/lp.py b/ubuntutools/requestsync/lp.py index 0165161..989b6f8 100644 --- a/ubuntutools/requestsync/lp.py +++ b/ubuntutools/requestsync/lp.py @@ -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: