From f22ac8df1dad2de6a928d7a60f8d53e8c8fd8167 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 21 Feb 2017 16:17:00 +0100 Subject: [PATCH] Include the forks in the gitolite configuration --- roles/distgit/templates/genacls.pkgdb.stg | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/distgit/templates/genacls.pkgdb.stg b/roles/distgit/templates/genacls.pkgdb.stg index aaeb259eb0..833515480f 100644 --- a/roles/distgit/templates/genacls.pkgdb.stg +++ b/roles/distgit/templates/genacls.pkgdb.stg @@ -265,6 +265,16 @@ def update_groups_to_db(namespace, pkg, pkg_groups): print "ERROR: %s" % err +def add_fork_to_gitolite(): + ''' Creates a sqlalchemy user object for pagure db ''' + for fork in pagure.lib.search_projects(session=SESSION, forks=True): + print '' + print 'repo %s' % (fork.fullname) + if masters: + print ' RWC = %s' % ' '.join( + [user.username for user in fork.committers]) + + if __name__ == '__main__': TRUSTED = grp.getgrnam('cvsadmin')[3] @@ -425,4 +435,6 @@ if __name__ == '__main__': if masters: print ' RWC = %s' % ' '.join(masters) + add_fork_to_gitolite() + sys.exit(0)