blob: 6c14b9753d4c1fd48336b21335deec2813623dff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/python
import os
import sys
import launchpadlib
from launchpadlib.launchpad import Launchpad
if __name__ == '__main__':
CACHE_DIR = os.path.expanduser('~/.launchpadlib/cache')
print("Please wait. It can take some time...\n")
filename = './bugs.csv'
outfile = open(filename, 'w')
lp = Launchpad.login_anonymously('bug2csv', 'production', CACHE_DIR)
pillar = lp.projects["linaro-android"]
bugs = pillar.searchTasks()
for bug_task in bugs:
id = bug_task.bug.id
title = bug_task.bug.title
status = bug_task.status
outfile.write("%s;%s;%s\n" % (id, title, status))
outfile.close()
|