From 1359d918152f47f5a3f4ef738988eb098e5921b4 Mon Sep 17 00:00:00 2001 From: Jonathan Patrick Davies Date: Fri, 15 Aug 2008 22:08:10 +0100 Subject: [PATCH] * requestsync: Suggest using the --lp flag when mailing a request encounters a failure. --- debian/changelog | 2 ++ requestsync | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 8973b2b..31ac87d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 14 Aug 2008 12:23:41 +0100 diff --git a/requestsync b/requestsync index 7575216..22063bb 100755 --- a/requestsync +++ b/requestsync @@ -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