mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
* requestsync: Added left out '% team' to urlopen().
This commit is contained in:
parent
ff50620915
commit
575e8e76d4
@ -57,14 +57,14 @@ def checkNeedsSponsorship(component):
|
|||||||
if component in ['main', 'restricted']:
|
if component in ['main', 'restricted']:
|
||||||
team = "ubuntu-core-dev"
|
team = "ubuntu-core-dev"
|
||||||
sponsor = "ubuntu-main-sponsors"
|
sponsor = "ubuntu-main-sponsors"
|
||||||
teamLPPage = urlopener.open('https://launchpad.net/~%s').read()
|
|
||||||
else:
|
else:
|
||||||
team = "ubuntu-dev"
|
team = "ubuntu-dev"
|
||||||
sponsor = "ubuntu-universe-sponsors"
|
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:
|
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
|
"team on Launchpad." % team
|
||||||
print "Your sync request shall require an approval by a member of " \
|
print "Your sync request shall require an approval by a member of " \
|
||||||
"the %s team." % sponsor
|
"the %s team." % sponsor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user