1 # Copyright (C) 2006, Thomas Leonard
2 # See http://0install.net/0compile.html
4 import sys
, os
, __main__
5 from logging
import info
9 def do_reportbug(args
):
13 log_name
= 'build/build-failure.log'
14 build_log
= file(log_name
)
15 log_text
= build_log
.read()
19 from urllib2
import urlopen
21 print "Sending contents of %s file to default bug tracker..." % log_name
23 stream
= urlopen('http://sourceforge.net/tracker/index.php',
29 'summary': log_text
.split('\n', 1)[0], # First line of log
30 'details': log_text
}))
34 __main__
.commands
.append(do_reportbug
)