/usr/bin/find-similar-bugs is in python-launchpadlib-toolkit 2.3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #! /usr/bin/python
import sys
from lpltk import LaunchpadService
#lp = LaunchpadService(config={'read_only':True})
lp = LaunchpadService()
if len(sys.argv) < 2:
print "Usage: similar-bugs [bug-id]"
sys.exit(2)
bug_id = sys.argv[1]
bug = lp.launchpad.bugs[bug_id]
for dupe in bug.bug_tasks[0].findSimilarBugs():
print "%12d %s" %(dupe.id, dupe.title)
|