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
|
ubuntu-dev-tools (0.11) gutsy; urgency=low
|
||||||
|
|
||||||
[ Daniel Holbach ]
|
[ Daniel Holbach ]
|
||||||
|
11
hugdaylist
11
hugdaylist
@ -18,6 +18,8 @@ import string
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import launchpadbugs.connector as Connector
|
import launchpadbugs.connector as Connector
|
||||||
|
BugList = Connector.ConnectBugList()
|
||||||
|
Bug = Connector.ConnectBug()
|
||||||
except:
|
except:
|
||||||
print >> sys.stderr, \
|
print >> sys.stderr, \
|
||||||
"You need python-launchpad-bugs (>= 0.2.9) installed to use hugdaylist."
|
"You need python-launchpad-bugs (>= 0.2.9) installed to use hugdaylist."
|
||||||
@ -44,17 +46,18 @@ def check_args():
|
|||||||
|
|
||||||
def filter_unsolved(bugs):
|
def filter_unsolved(bugs):
|
||||||
result = set()
|
result = set()
|
||||||
|
|
||||||
for b in bugs:
|
for b in bugs:
|
||||||
if b.status != 'Fix Committed' and \
|
bug = Bug(int(b))
|
||||||
'ubuntu-main-sponsors' not in [str(s) for s in b.subscribers] and \
|
if bug.status != 'Fix Committed' and \
|
||||||
'ubuntu-universe-sponsors' not in [str(s) for s in b.subscribers]:
|
'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)
|
result.add(b)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
(howmany, url) = check_args()
|
(howmany, url) = check_args()
|
||||||
|
|
||||||
BugList = Connector.ConnectBugList()
|
|
||||||
l = BugList(url).filter(func=[filter_unsolved])
|
l = BugList(url).filter(func=[filter_unsolved])
|
||||||
|
|
||||||
if not l.bugs:
|
if not l.bugs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user