Commit 243fb922 authored by Eli Schwartz's avatar Eli Schwartz Committed by Lukas Fleischer
Browse files

Fix setting keywords in the SSH interface

This was broken in commit 8914a41d

refactored the argument parsing. Instead of checking for at least the
set-keywords command and a pkgbase name, we were checking for *exactly*
the command and pkgbase name, leaving no room for keywords...

As a result, while we could clear the keywords, we could not set them.

Signed-off-by: Eli Schwartz's avatarEli Schwartz <>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent ad4acfb9
......@@ -502,7 +502,7 @@ def serve(action, cmdargv, user, privileged, remote_addr):
cmd = action + " '" + repo_path + "'"
os.execl(git_shell_cmd, git_shell_cmd, '-c', cmd)
elif action == 'set-keywords':
checkarg(cmdargv, 'repository name')
checkarg_atleast(cmdargv, 'repository name')
pkgbase_set_keywords(cmdargv[1], cmdargv[2:])
elif action == 'list-repos':
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment