* requestsync: Added left out '% team' to urlopen().

This commit is contained in:
Jonathan Patrick Davies 2008-08-12 15:46:44 +01:00
parent ff50620915
commit 575e8e76d4

View File

@ -57,14 +57,14 @@ def checkNeedsSponsorship(component):
if component in ['main', 'restricted']:
team = "ubuntu-core-dev"
sponsor = "ubuntu-main-sponsors"
teamLPPage = urlopener.open('https://launchpad.net/~%s').read()
else:
team = "ubuntu-dev"
sponsor = "ubuntu-universe-sponsors"
teamLPPage = urlopener.open('https://launchpad.net/~%s').read()
teamLPPage = urlopener.open('https://launchpad.net/~%s' % team).read()
if 'You are not a member of this team:' in teamLPPage:
print "You are not a member (direct or indirect) of the %s " \
print "You are not a member (direct or indirect) of the '%s' " \
"team on Launchpad." % team
print "Your sync request shall require an approval by a member of " \
"the %s team." % sponsor