More fixes for pagure on dist-git stg
- Expand the list of allowed prefix so we can include the test namespaces - Be compatible with pagure 2.12 that does not know about ACLs yet - Update forgotten variable
This commit is contained in:
parent
ef99219f5e
commit
cde7725860
2 changed files with 6 additions and 4 deletions
|
@ -174,7 +174,8 @@ ENABLE_NEW_PROJECTS = False
|
|||
ENABLE_DEL_PROJECTS = False
|
||||
ENABLE_TICKETS = False
|
||||
ENABLE_USER_MNGT = False
|
||||
ALLOWED_PREFIX = ['rpms', 'modules', 'docker']
|
||||
ALLOWED_PREFIX = ['rpms', 'modules', 'docker', 'test-rpms', 'test-modules',
|
||||
'test-docker']
|
||||
|
||||
DISABLED_PLUGINS = ['IRC', 'Pagure tickets', 'Read the Doc']
|
||||
|
||||
|
|
|
@ -176,7 +176,8 @@ def update_owners_to_db(namespace, pkg, owners):
|
|||
namespace=namespace
|
||||
)
|
||||
|
||||
if owner_obj not in pkg_obj.admins and owner_obj is not pkg_obj.user:
|
||||
#if owner_obj not in pkg_obj.admins and owner_obj is not pkg_obj.user:
|
||||
if owner_obj not in pkg_obj.users and owner_obj is not pkg_obj.user:
|
||||
try:
|
||||
pagure.lib.add_user_to_project(
|
||||
session=SESSION,
|
||||
|
@ -251,7 +252,7 @@ def update_groups_to_db(namespace, pkg, pkg_groups):
|
|||
project=pkg_obj,
|
||||
new_group=group,
|
||||
user=pkg_obj.user.user,
|
||||
access='admin'
|
||||
#access='admin'
|
||||
)
|
||||
SESSION.commit()
|
||||
except SQLAlchemyError as err:
|
||||
|
@ -413,7 +414,7 @@ if __name__ == '__main__':
|
|||
)
|
||||
|
||||
print ''
|
||||
print 'repo %s%s' % (key, pkg)
|
||||
print 'repo %s/%s' % (namespace, pkg)
|
||||
print '\n'.join(buffer)
|
||||
for reserved in RESERVED:
|
||||
print ' - %s = @all' % reserved
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue