* requestsync: Exit when connecting to Launchpad fails.

This commit is contained in:
Jonathan Patrick Davies 2008-08-24 21:46:53 +01:00
parent 884e3a8575
commit 570a068118
2 changed files with 7 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ubuntu-dev-tools (0.42ubuntu1) intrepid; urgency=low
* requestsync: Exit when connecting to Launchpad fails.
-- Jonathan Patrick Davies <jpds@ubuntu.com> Sun, 24 Aug 2008 21:43:30 +0100
ubuntu-dev-tools (0.41) intrepid; urgency=low ubuntu-dev-tools (0.41) intrepid; urgency=low
[ Loic Minier ] [ Loic Minier ]

View File

@ -67,6 +67,7 @@ def checkNeedsSponsorship(component):
try: teamLPPage = urlopener.open('https://launchpad.net/~%s' % team).read() try: teamLPPage = urlopener.open('https://launchpad.net/~%s' % team).read()
except urllib2.HTTPError: except urllib2.HTTPError:
print >> sys.stderr, "Unable to connect to Launchpad." print >> sys.stderr, "Unable to connect to Launchpad."
sys.exit(1)
# Check if they are a member of the team. # Check if they are a member of the team.
if "You are an indirect member of this team:" in teamLPPage or \ if "You are an indirect member of this team:" in teamLPPage or \