* requestsync: Improve dup sync bug checking.

This commit is contained in:
Jonathan Patrick Davies 2008-09-01 23:12:38 +01:00
parent 806beacb51
commit e34088a986

View File

@ -97,16 +97,23 @@ def checkExistingReports(package):
if len(pkgBugList) == 0: if len(pkgBugList) == 0:
return # No bugs found. return # No bugs found.
for bug in pkgBugList: matchingBugs = [bug for bug in pkgBugList if "Please sync %s" %
# See if Please sync package is in the bug summary. package in bug.summary]
if ("Please sync %s" % package) in bug.summary:
print "A bug with the title: '%s' has been found on Launchpad." % bug.summary if len(matchingBugs) == 0:
print "Please see the following URL to verify this before filing a " \ return # No sync bugs found.
"duplicate report:"
print " -", bug.url print "The following bugs could be possible duplicate sync bug(s) on Launchpad:"
print "Press Ctrl-C to stop filing the bug report now, otherwise " \
"please press enter." for bug in matchingBugs:
raw_input_exit_on_ctrlc() print " *", bug.summary
print " -", bug.url
print "Please check out the above URLs to verify this before filing a " \
"duplicate report."
print "Press Ctrl-C to stop filing the bug report now, otherwise " \
"please press enter."
raw_input_exit_on_ctrlc()
def cur_version_component(sourcepkg, release): def cur_version_component(sourcepkg, release):
'''Determine current package version in ubuntu.''' '''Determine current package version in ubuntu.'''