mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
housekeep(git): remove deprecated "setup-repo" command
Marked as deprecated about 6 years ago. Time to bury it. Issue report: #428 Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
parent
68813abcf0
commit
b1a9efd552
3 changed files with 10 additions and 14 deletions
|
@ -573,13 +573,6 @@ def serve(action, cmdargv, user, privileged, remote_addr): # noqa: C901
|
|||
elif action == "list-repos":
|
||||
checkarg(cmdargv)
|
||||
list_repos(user)
|
||||
elif action == "setup-repo":
|
||||
checkarg(cmdargv, "repository name")
|
||||
warn(
|
||||
"{:s} is deprecated. "
|
||||
"Use `git push` to create new repositories.".format(action)
|
||||
)
|
||||
create_pkgbase(cmdargv[1], user)
|
||||
elif action == "restore":
|
||||
checkarg(cmdargv, "repository name")
|
||||
|
||||
|
@ -636,7 +629,6 @@ def serve(action, cmdargv, user, privileged, remote_addr): # noqa: C901
|
|||
"restore <name>": "Restore a deleted package base.",
|
||||
"set-comaintainers <name> [...]": "Set package base co-maintainers.",
|
||||
"set-keywords <name> [...]": "Change package base keywords.",
|
||||
"setup-repo <name>": "Create a repository (deprecated).",
|
||||
"unflag <name>": "Remove out-of-date flag from a package base.",
|
||||
"unvote <name>": "Remove vote from a package base.",
|
||||
"vote <name>": "Vote for a package base.",
|
||||
|
|
|
@ -53,7 +53,6 @@ The git-serve command, the "aurweb shell", provides different subcommands:
|
|||
* The restore command can be used to restore a deleted package base.
|
||||
* The set-comaintainers command modifies the co-maintainers of a package base.
|
||||
* The set-keywords command modifies the keywords assigned to a package base.
|
||||
* The setup-repo command can be used to create a new repository.
|
||||
* The vote/unvote command can be used to vote/unvote for a package base.
|
||||
* The git-{receive,upload}-pack commands are redirected to git-shell(1).
|
||||
|
||||
|
|
|
@ -56,11 +56,16 @@ test_expect_success 'Test IP address bans.' '
|
|||
SSH_CLIENT="$SSH_CLIENT_ORIG"
|
||||
'
|
||||
|
||||
test_expect_success 'Test setup-repo and list-repos.' '
|
||||
SSH_ORIGINAL_COMMAND="setup-repo foobar" AUR_USER=user \
|
||||
cover "$GIT_SERVE" 2>&1 &&
|
||||
SSH_ORIGINAL_COMMAND="setup-repo foobar2" AUR_USER=tu \
|
||||
cover "$GIT_SERVE" 2>&1 &&
|
||||
test_expect_success 'Test list-repos.' '
|
||||
# insert our test packages
|
||||
echo "INSERT INTO PackageBases (Name, SubmittedTS, \
|
||||
ModifiedTS, SubmitterUID, MaintainerUID, FlaggerComment) \
|
||||
VALUES (\"foobar\", 0, 0, 1, 1, \"\");" | \
|
||||
sqlite3 aur.db
|
||||
echo "INSERT INTO PackageBases (Name, SubmittedTS, \
|
||||
ModifiedTS, SubmitterUID, MaintainerUID, FlaggerComment) \
|
||||
VALUES (\"foobar2\", 0, 0, 2, 2, \"\");" | \
|
||||
sqlite3 aur.db
|
||||
cat >expected <<-EOF &&
|
||||
*foobar
|
||||
EOF
|
||||
|
|
Loading…
Add table
Reference in a new issue