Gentoo Archives: gentoo-commits

From: "Paweł Hajdan" <phajdan.jr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/arch-tools:master commit in: /
Date: Thu, 02 Jun 2011 15:42:03
Message-Id: 67fb002b35cfd56ee6d07838b55ec3723518198d.phajdan.jr@gentoo
1 commit: 67fb002b35cfd56ee6d07838b55ec3723518198d
2 Author: Pawel Hajdan, Jr <phajdan.jr <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 2 15:41:38 2011 +0000
4 Commit: Paweł Hajdan <phajdan.jr <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 2 15:41:38 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/arch-tools.git;a=commit;h=67fb002b
7
8 Gracefully handle empty bug queue.
9
10 ---
11 bugzilla-viewer.py | 4 ++++
12 1 files changed, 4 insertions(+), 0 deletions(-)
13
14 diff --git a/bugzilla-viewer.py b/bugzilla-viewer.py
15 index e62ac98..d04e6db 100755
16 --- a/bugzilla-viewer.py
17 +++ b/bugzilla-viewer.py
18 @@ -276,6 +276,10 @@ if __name__ == "__main__":
19 raw_bugs = bugzilla.search("", cc="%s@g.o" % options.arch, keywords="STABLEREQ", status=None)
20 bugs = [Bug(xml) for xml in bugzilla.get([bug['bugid'] for bug in raw_bugs]).findall("bug")]
21
22 + if not bugs:
23 + print 'The bug list is empty. Exiting.'
24 + sys.exit(0)
25 +
26 dep_bug_ids = []
27
28 bugs_dict = {}