Skip to content
Snippets Groups Projects
Commit 0b70094b authored by Andreas Tille's avatar Andreas Tille
Browse files

vcs file needs an additional Blends field to work with UDD gatherer

parent d4047509
No related branches found
Tags debian/4.3.2-1
No related merge requests found
......@@ -7,28 +7,28 @@ import shutil
import base64
import subprocess
BLENDSGROUPS=[ 'Debian 3D Printing Team'
, 'Debian Accessibility Team'
, 'Debian Astro Team'
, 'Debian Edu Packaging Team'
, 'Debian Electronics'
, 'Debian Games'
, 'Debian GIS Project'
, 'Debian Hamradio Maintainers'
, 'Debian IoT'
, 'Debian Java Maintainers'
, 'Debian JavaScript Maintainers'
, 'Debian Med'
, 'Debian Multimedia Team'
, 'Debian Octave Group'
, 'Debian Perl Group'
, 'Debian PhotoTools Team'
, 'Debian R Packages Maintainers'
, 'Debian Science Team'
, 'Debian Tryton Maintainers'
, 'Debian VoIP Packaging Team'
, 'Debichem'
]
BLENDSGROUPS={ 'Debian 3D Printing Team' : '3dprinter'
, 'Debian Accessibility Team' : 'pkg-a11y'
, 'Debian Astro Team' : 'debian-astro'
, 'Debian Edu Packaging Team' : 'debian-edu'
, 'Debian Electronics' : 'pkg-electronics'
, 'Debian Games' : 'pkg-games'
, 'Debian GIS Project' : 'pkg-grass'
, 'Debian Hamradio Maintainers' : 'pkg-hamradio'
, 'Debian IoT' : 'pkg-iot'
, 'Debian Java Maintainers' : 'pkg-java'
, 'Debian JavaScript Maintainers' : 'pkg-js'
, 'Debian Med' : 'debian-med'
, 'Debian Multimedia Team' : 'pkg-multimedia'
, 'Debian Octave Group' : 'pkg-octave'
, 'Debian Perl Group' : 'pkg-perl'
, 'Debian PhotoTools Team' : 'pkg-phototools'
, 'Debian R Packages Maintainers' : 'pkg-r'
, 'Debian Science Team' : 'debian-science'
, 'Debian Tryton Maintainers' : 'tryton'
, 'Debian VoIP Packaging Team' : 'pkg-voip'
, 'Debichem' : 'debichem'
}
# missing on Salsa yet:
# pkg-exppsy
......@@ -36,7 +36,7 @@ BLENDSGROUPS=[ 'Debian 3D Printing Team'
# FIXME: Debian Perl Group is listed with only 2 projects which is definitely wrong
# just start with one team
# BLENDSGROUPS=[ 'Debian Med' ]
# BLENDSGROUPS={ 'Debian Med' : 'debian-med'}
debianmetadata = [ 'changelog',
'control',
......@@ -89,8 +89,9 @@ gl = gitlab.Gitlab("https://salsa.debian.org") # , private_token=SALSA_TOKEN) #
blends_groups = get_blends_groups()
for group in blends_groups:
gpath = group.attributes['path']
blend = BLENDSGROUPS[group.attributes['name']]
projects = group.projects.list(all=True, order_by='name', sort='asc')
print(group.attributes['name'], len(projects)) # group.attributes['id'], group.attributes['path']) # , group.attributes['description'], group.attributes['full_name'])
print("%s has %i projects (Blend name %s)" % (group.attributes['name'], len(projects), blend)) # group.attributes['id'], group.attributes['path']) # , group.attributes['description'], group.attributes['full_name'])
# DEBUG : only few projects to be faster
# projects = group.projects.list(page=1, per_page=10, order_by='name', sort='asc')
for pr in projects:
......@@ -102,6 +103,7 @@ for group in blends_groups:
with open(os.path.join(namedir,name+'.vcs'), 'w') as out:
out.write("Vcs-Browser: git@salsa.debian.org:%s/%s\n" % (gpath, name))
out.write("Vcs-Git: git@salsa.debian.org:%s/%s.git\n" % (gpath, name))
out.write("Blend: %s\n" % blend)
out.close()
# print(project)
if output_metadata('debian', debianmetadata):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment