summaryrefslogtreecommitdiffstats
path: root/aurweb/git
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2017-07-20 23:51:43 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2017-07-22 17:47:34 +0200
commit243fb92273de1c8bf5c938a62cb06bd198c97c4c (patch)
tree4d44c3f5febf5e0164cae3550630bb7c09879ced /aurweb/git
parentad4acfb9aafe3cbee9c91570d039fcf4873c5762 (diff)
downloadaur-243fb92273de1c8bf5c938a62cb06bd198c97c4c.tar.gz
aur-243fb92273de1c8bf5c938a62cb06bd198c97c4c.tar.xz
Fix setting keywords in the SSH interface
This was broken in commit 8914a41db938194efc021f842c89d47ff6b522c9 which 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 <eschwartz@archlinux.org> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'aurweb/git')
-rwxr-xr-xaurweb/git/serve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/aurweb/git/serve.py b/aurweb/git/serve.py
index 3eef26a7..eea0c9c5 100755
--- a/aurweb/git/serve.py
+++ b/aurweb/git/serve.py
@@ -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':
checkarg(cmdargv)