* requestsync: Suggest using the --lp flag when mailing a request encounters

a failure.
This commit is contained in:
Jonathan Patrick Davies 2008-08-15 22:08:10 +01:00
parent 307417e56a
commit 1359d91815
2 changed files with 7 additions and 1 deletions

2
debian/changelog vendored
View File

@ -4,6 +4,8 @@ ubuntu-dev-tools (0.40ubuntu1) intrepid; urgency=low
* buildd: Code cleanup on single arch options.
* doc/buildd.1: Created.
* doc/requestsync.1: Added note about sponsorship detecting.
* requestsync: Suggest using the --lp flag when mailing a request encounters
a failure.
-- Jonathan Patrick Davies <jpds@ubuntu.com> Thu, 14 Aug 2008 12:23:41 +0100

View File

@ -265,8 +265,12 @@ def mail_bug(source_package, subscribe, status, bugtitle, bugtext, keyid = None)
try:
s = smtplib.SMTP(mailserver, mailserver_port)
except socket.error, s:
print "ERROR: Could not connect to mailserver %s at port %s: %s (%i)" % \
print sys.stderr, >> "Could not connect to mailserver %s at port %s: %s (%i)" % \
(mailserver, mailserver_port, s[1], s[0])
print "The port %s may be firewalled. Please try using requestsync with" \
% mailserver_port
print "the '--lp' flag to file a sync request with the launchpadbugs " \
"module."
return False
# authenticate to the server