Use the stg pkgdb when retrieving the groups

This commit is contained in:
Pierre-Yves Chibon 2015-01-23 10:08:57 +01:00
parent 4b57e9101d
commit bfa2f9bb43

View file

@ -58,7 +58,11 @@ if __name__ == '__main__':
print '@fedora-ppc = %s' % ' '.join(PPC)
# Get a list of all the groups
{% if env == 'staging' %}
groups = requests.get('https://admin.stg.fedoraproject.org/pkgdb/api/groups?format=json').json()
{% else %}
groups = requests.get('https://admin.fedoraproject.org/pkgdb/api/groups?format=json').json()
{% endif %}
for group in groups['groups']:
print '@%s = %s' % (group, ' '.join(grp.getgrnam(group)[3]))