mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
* hugdaylist: apply quick fix to not crash.
This commit is contained in:
parent
d61c07aeec
commit
a8dd716512
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
ubuntu-dev-tools (0.12) gutsy; urgency=low
|
||||
|
||||
* hugdaylist: apply quick fix to not crash.
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Mon, 24 Sep 2007 09:43:30 +0200
|
||||
|
||||
ubuntu-dev-tools (0.11) gutsy; urgency=low
|
||||
|
||||
[ Daniel Holbach ]
|
||||
|
11
hugdaylist
11
hugdaylist
@ -18,6 +18,8 @@ import string
|
||||
|
||||
try:
|
||||
import launchpadbugs.connector as Connector
|
||||
BugList = Connector.ConnectBugList()
|
||||
Bug = Connector.ConnectBug()
|
||||
except:
|
||||
print >> sys.stderr, \
|
||||
"You need python-launchpad-bugs (>= 0.2.9) installed to use hugdaylist."
|
||||
@ -44,17 +46,18 @@ def check_args():
|
||||
|
||||
def filter_unsolved(bugs):
|
||||
result = set()
|
||||
|
||||
for b in bugs:
|
||||
if b.status != 'Fix Committed' and \
|
||||
'ubuntu-main-sponsors' not in [str(s) for s in b.subscribers] and \
|
||||
'ubuntu-universe-sponsors' not in [str(s) for s in b.subscribers]:
|
||||
bug = Bug(int(b))
|
||||
if bug.status != 'Fix Committed' and \
|
||||
'ubuntu-main-sponsors' not in [str(s) for s in bug.subscribers] and \
|
||||
'ubuntu-universe-sponsors' not in [str(s) for s in bug.subscribers]:
|
||||
result.add(b)
|
||||
return result
|
||||
|
||||
def main():
|
||||
(howmany, url) = check_args()
|
||||
|
||||
BugList = Connector.ConnectBugList()
|
||||
l = BugList(url).filter(func=[filter_unsolved])
|
||||
|
||||
if not l.bugs:
|
||||
|
Loading…
x
Reference in New Issue
Block a user