mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-06 06:21:30 +00:00
* debian/control: bumped python-launchpad-bugs requirement to newest version
and made it a Recommends. All scripts in ubuntu-dev-tools using it fail gracefully if it's not installed. * hugdaylist: - make use of text connector. - commentary in wiki output.
This commit is contained in:
parent
a5ef968b0b
commit
8468034ed9
10
debian/changelog
vendored
10
debian/changelog
vendored
@ -1,5 +1,13 @@
|
|||||||
ubuntu-dev-tools (0.23) UNRELEASED; urgency=low
|
ubuntu-dev-tools (0.23) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
[ Daniel Holbach ]
|
||||||
|
* debian/control: bumped python-launchpad-bugs requirement to newest version
|
||||||
|
and made it a Recommends. All scripts in ubuntu-dev-tools using it fail
|
||||||
|
gracefully if it's not installed.
|
||||||
|
* hugdaylist:
|
||||||
|
- make use of text connector.
|
||||||
|
- commentary in wiki output.
|
||||||
|
|
||||||
[ Ryan Kavanagh ]
|
[ Ryan Kavanagh ]
|
||||||
* Updated requestsync(1) to reflect the addition of the -k <keyid> and
|
* Updated requestsync(1) to reflect the addition of the -k <keyid> and
|
||||||
removed a runon in DESCRIPTION.
|
removed a runon in DESCRIPTION.
|
||||||
@ -35,7 +43,7 @@ ubuntu-dev-tools (0.23) UNRELEASED; urgency=low
|
|||||||
arguments.
|
arguments.
|
||||||
* More *roff fixes.
|
* More *roff fixes.
|
||||||
|
|
||||||
-- Siegfried-Angel Gevatter Pujals (RainCT) <sgevatter@ubuntu.cat> Fri, 23 Nov 2007 22:07:58 +0100
|
-- Daniel Holbach <daniel.holbach@ubuntu.com> Wed, 05 Dec 2007 09:57:41 +0100
|
||||||
|
|
||||||
ubuntu-dev-tools (0.22) hardy; urgency=low
|
ubuntu-dev-tools (0.22) hardy; urgency=low
|
||||||
|
|
||||||
|
4
debian/control
vendored
4
debian/control
vendored
@ -13,8 +13,8 @@ Standards-Version: 3.7.2
|
|||||||
Package: ubuntu-dev-tools
|
Package: ubuntu-dev-tools
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Section: devel
|
Section: devel
|
||||||
Depends: ${python:Depends}, ${misc:Depends}, binutils, devscripts, sudo, python-launchpad-bugs (>= 0.2.14), reportbug (>= 3.39ubuntu1), python-debian
|
Depends: ${python:Depends}, ${misc:Depends}, binutils, devscripts, sudo, python-launchpad-bugs (>= 0.2.25), reportbug (>= 3.39ubuntu1), python-debian
|
||||||
Recommends: bzr, pbuilder
|
Recommends: bzr, pbuilder, python-launchpad-bugs (>= 0.2.5)
|
||||||
Conflicts: devscripts (<< 2.10.7ubuntu5)
|
Conflicts: devscripts (<< 2.10.7ubuntu5)
|
||||||
Replaces: devscripts (<< 2.10.7ubuntu5)
|
Replaces: devscripts (<< 2.10.7ubuntu5)
|
||||||
XB-Python-Version: ${python:Versions}
|
XB-Python-Version: ${python:Versions}
|
||||||
|
51
hugdaylist
51
hugdaylist
@ -19,12 +19,11 @@ import string
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import launchpadbugs.connector as Connector
|
import launchpadbugs.connector as Connector
|
||||||
import launchpadbugs.bughelper_error as ConnectorErrors
|
|
||||||
BugList = Connector.ConnectBugList()
|
BugList = Connector.ConnectBugList()
|
||||||
Bug = Connector.ConnectBug()
|
Bug = Connector.ConnectBug(method="Text")
|
||||||
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.25) installed to use hugdaylist."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
@ -49,40 +48,38 @@ def check_args():
|
|||||||
|
|
||||||
return (howmany, url)
|
return (howmany, url)
|
||||||
|
|
||||||
def filter_unsolved(bugs):
|
def filter_unsolved(b):
|
||||||
result = set()
|
bug = Bug(int(b))
|
||||||
|
return filter(lambda a: (a.affects.lower().count('ubuntu')) and \
|
||||||
for b in bugs:
|
a.status != 'Fix Committed' and \
|
||||||
bug = Bug(int(b))
|
(a.assignee in ['motu','desktop-bugs'] or \
|
||||||
if bug.status != 'Fix Committed' and \
|
not a.assignee), bug.infotable) and \
|
||||||
'ubuntu-main-sponsors' not in [str(s) for s in bug.subscribers] 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] and \
|
'ubuntu-universe-sponsors' not in [str(s) for s in bug.subscribers]
|
||||||
(bug.assignee in ['motu','desktop-bugs'] or not bug.assignee):
|
|
||||||
result.add(b)
|
|
||||||
return result
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
(howmany, url) = check_args()
|
(howmany, url) = check_args()
|
||||||
|
|
||||||
try:
|
bl = BugList(url)
|
||||||
l = BugList(url).filter(func=[filter_unsolved])
|
l = filter(filter_unsolved, bl)
|
||||||
except ConnectorErrors.LPUrlError:
|
|
||||||
print "Couldn't load «%s»." % url
|
|
||||||
sys.exit(1)
|
|
||||||
except KeyboardInterrupt:
|
|
||||||
sys.exit(1) # User aborted, no need to print a backtrace
|
|
||||||
|
|
||||||
if not l.bugs:
|
if not l:
|
||||||
print "BugList of %s is empty." % url
|
print "BugList of %s is empty." % url
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if howmany == -1:
|
if howmany == -1:
|
||||||
howmany = len(l.bugs)
|
howmany = len(l)
|
||||||
|
|
||||||
print "|| Bug || Subject || Triager ||"
|
|
||||||
|
|
||||||
for i in list(l.bugs)[:howmany]:
|
print """
|
||||||
print '||<rowstyle="background-color: ;"> [%s %s] || %s || ||' % \
|
## ||<rowbgcolor="#CCFFCC"> This task is done || somebody || ||
|
||||||
|
## ||<rowbgcolor="#FFFFCC"> This task is assigned || somebody || <status> ||
|
||||||
|
## ||<rowbgcolor="#FFEBBB"> This task isn't || ... || ||
|
||||||
|
## ||<rowbgcolor="#FFCCCC"> This task is blocked on something || somebody || <explanation> ||
|
||||||
|
|
||||||
|
|| Bug || Subject || Triager ||"""
|
||||||
|
|
||||||
|
for i in list(l)[:howmany]:
|
||||||
|
print '||<rowbgcolor="#FFEBBB"> [%s %s] || %s || ||' % \
|
||||||
(i.url, i.bugnumber, i.summary)
|
(i.url, i.bugnumber, i.summary)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user