mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
git-serve: Add support for setting co-maintainers
Add support for changing co-maintainers from the SSH interface. The syntax is `set-comaintainers <pkgbase> <user1> <user2>...`. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
9b983ac03e
commit
94ac084d9d
1 changed files with 8 additions and 0 deletions
|
@ -374,6 +374,13 @@ elif action == 'disown':
|
||||||
|
|
||||||
pkgbase = cmdargv[1]
|
pkgbase = cmdargv[1]
|
||||||
pkgbase_disown(pkgbase)
|
pkgbase_disown(pkgbase)
|
||||||
|
elif action == 'set-comaintainers':
|
||||||
|
if len(cmdargv) < 2:
|
||||||
|
die_with_help("{:s}: missing repository name".format(action))
|
||||||
|
|
||||||
|
pkgbase = cmdargv[1]
|
||||||
|
userlist = cmdargv[2:]
|
||||||
|
pkgbase_set_comaintainers(pkgbase, userlist)
|
||||||
elif action == 'help':
|
elif action == 'help':
|
||||||
cmds = {
|
cmds = {
|
||||||
"adopt <name>": "Adopt a package base.",
|
"adopt <name>": "Adopt a package base.",
|
||||||
|
@ -381,6 +388,7 @@ elif action == 'help':
|
||||||
"help": "Show this help message and exit.",
|
"help": "Show this help message and exit.",
|
||||||
"list-repos": "List all your repositories.",
|
"list-repos": "List all your repositories.",
|
||||||
"restore <name>": "Restore a deleted package base.",
|
"restore <name>": "Restore a deleted package base.",
|
||||||
|
"set-comaintainers <name> [...]": "Set package base co-maintainers.",
|
||||||
"set-keywords <name> [...]": "Change package base keywords.",
|
"set-keywords <name> [...]": "Change package base keywords.",
|
||||||
"setup-repo <name>": "Create a repository (deprecated).",
|
"setup-repo <name>": "Create a repository (deprecated).",
|
||||||
"git-receive-pack": "Internal command used with Git.",
|
"git-receive-pack": "Internal command used with Git.",
|
||||||
|
|
Loading…
Add table
Reference in a new issue