diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2016-07-24 19:22:18 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2016-08-04 21:37:52 +0200 |
commit | 0c1187caa46ba2b5d159a88c9301356b56ef0637 (patch) | |
tree | 0b9180d3be2ffa30fa458815b8eb5ed741d204a5 /git-interface | |
parent | 415a2c836df9094ddac555d5ed967ac11e48907e (diff) | |
download | aur-0c1187caa46ba2b5d159a88c9301356b56ef0637.tar.gz aur-0c1187caa46ba2b5d159a88c9301356b56ef0637.tar.xz |
git-serve: Deprecate setup-repo
Since 02dd9c5 (git-serve.py: Automatically create repositories,
2015-01-06), one can create new package bases by running `git push`. It
is no longer necessary to run setup-repo manually.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'git-interface')
-rwxr-xr-x | git-interface/git-serve.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/git-interface/git-serve.py b/git-interface/git-serve.py index aa5f1c93..e0ebd0ec 100755 --- a/git-interface/git-serve.py +++ b/git-interface/git-serve.py @@ -133,6 +133,10 @@ def die_with_help(msg): die(msg + "\nTry `{:s} help` for a list of commands.".format(ssh_cmdline)) +def warn(msg): + sys.stderr.write("warning: {:s}\n".format(msg)) + + user = os.environ.get('AUR_USER') privileged = (os.environ.get('AUR_PRIVILEGED', '0') == '1') ssh_cmd = os.environ.get('SSH_ORIGINAL_COMMAND') @@ -186,6 +190,7 @@ elif action == 'setup-repo': die_with_help("{:s}: missing repository name".format(action)) if len(cmdargv) > 2: die_with_help("{:s}: too many arguments".format(action)) + warn('{:s} is deprecated. Use `git push` to create new repositories.'.format(action)) create_pkgbase(cmdargv[1], user) elif action == 'restore': if len(cmdargv) < 2: |