- 25 Apr, 2017 1 commit
-
-
Lukas Fleischer authored
Since commit 09cb61ab (schema: Remove invalid default values for TEXT columns, 2017-04-15), the PackageBases.FlaggerComment field no longer has a default value. Initialize this field explicitly whenever a new row is added to the PackageBases table. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 25 Jan, 2017 2 commits
-
-
Lukas Fleischer authored
Currently, IP address bans affect the web interface only. Make sure they are honored in the SSH interface as well. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
In addition to logging the last login date and IP address on the web interface, store the time stamp and IP address of the last SSH login in the database. This simplifies user banning if one of the new SSH interface features, such as the voting mechanism implemented in 7ee2fddc (git-serve: Add support for (un-)voting, 2017-01-23), is abused. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 23 Jan, 2017 1 commit
-
-
Lukas Fleischer authored
Add support for voting for packages and removing votes from the SSH interface. The syntax is `vote <pkgbase>` resp. `unvote <pkgbase>`. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 23 Dec, 2016 1 commit
-
-
Lukas Fleischer authored
Make it easier to reuse the helper functions provided by git-serve from another Python script by throwing exceptions instead of terminating the program on errors. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 20 Dec, 2016 1 commit
-
-
Lukas Fleischer authored
Add support for flagging or unflagging packages from the SSH interface. The syntax is `flag <pkgbase> <comment>` resp. `unflag <pkgbase>`. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 11 Oct, 2016 1 commit
-
-
Lukas Fleischer authored
When disowning a package base via the SSH interface, auto-accept all pending orphan requests for the affected package. Also, add a test case that checks whether (only) orphan requests belonging to disowned packages are closed correctly. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 08 Oct, 2016 1 commit
-
-
Lukas Fleischer authored
Move the Git interface scripts from git-interface/ to aurweb/git/. Use setuptools to automatically create wrappers which can be installed using `python3 setup.py install`. Update the configuration files, the test suite as well as the INSTALL and README files to reflect these changes. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 01 Oct, 2016 1 commit
-
-
Lukas Fleischer authored
Add support for the `git receive-pack` and `git upload-pack` commands which are aliases for git-receive-pack and git-upload-pack, respectively. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 29 Sep, 2016 3 commits
-
-
Lukas Fleischer authored
Instead of using relative imports, add support for installing the config and db Python modules to a proper location using setuptools. Change all git-interface scripts to access those modules from the search path. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Move the main program logic of git-serve to a main() method such that it can be used as a module and easily be invoked by setuptools wrapper scripts. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Move the main program logic of git-server to a main() method such that it can be used as a module and easily be invoked by setuptools wrapper scripts. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 18 Sep, 2016 2 commits
-
-
Lukas Fleischer authored
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>
-
Lukas Fleischer authored
Add support for disowning packages from the SSH interface. The syntax is `disown <pkgbase>`. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 17 Sep, 2016 2 commits
-
-
Lukas Fleischer authored
Add support for adopting packages from the SSH interface. The syntax is `adopt <pkgbase>`. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Remove the formatting of the usage text and add code to columnize it automatically instead. Also, add more strict tests for the usage output. These new tests ensure that the usage header is printed, commands are indented properly and no overly long lines are produced. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 12 Sep, 2016 1 commit
-
-
Lukas Fleischer authored
Since 0c1187ca (git-serve: Deprecate setup-repo, 2016-07-24), it is no longer recommended to use setup-repo. Mark the command as deprecated in the usage/help text. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 10 Aug, 2016 1 commit
-
-
Lukas Fleischer authored
Create new package bases just before saving package metadata. This protects from stray package bases left behind when new packages are rejected, e.g. when the user tries to push a package that is available from the official repositories already. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 05 Aug, 2016 3 commits
-
-
Lukas Fleischer authored
Avoid using UNIX_TIMESTAMP which is not part of the SQL standard. Retrieve the current UNIX time in Python and substitute it into the SQL queries instead. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Add a new module that automatically locates the configuration file and provides methods to obtain the values of configuration options. Use the new module instead of ConfigParser everywhere. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Add a new class that connects to the database specified in the configuration file and provides an interface to execute SQL queries. Prepared statements with qmark ("?") placeholders are supported. Replace all direct database accesses with calls to the new abstraction layer. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 04 Aug, 2016 2 commits
-
-
Lukas Fleischer authored
Since 02dd9c51 (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>
-
Lukas Fleischer authored
Read all environment variables at the beginning of the script and immediately pre-process their values. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 09 Feb, 2016 1 commit
-
-
Lukas Fleischer authored
Instead of `config <pkgbase> keywords <keyword1> <keyword2>...`, the new syntax is `set-keywords <pkgbase> <keyword1> <keyword2>...`. The `config` keyword was rather general and it was not obvious that it could be used to change package base settings. Instead of replacing it with an even more verbose expression, remove that unnecessary level of indirection. Since we do not (and probably never will) support keywords anywhere else, the chance of name conflicts is small. Suggested-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 07 Feb, 2016 1 commit
-
-
Lukas Fleischer authored
As a preparatory step to adding support for package notifications on events other than comments, rename the database table accordingly. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 06 Feb, 2016 1 commit
-
-
Lukas Fleischer authored
Fix several style issues and remove unneeded imports/assignments. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 26 Nov, 2015 1 commit
-
-
Fixes a regression introduced in 8c87b1df (git-serve: Add support for setting keywords, 2015-10-22). Signed-off-by:
Mark Weiman <mark.weiman@markzz.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 24 Oct, 2015 1 commit
-
-
Lukas Fleischer authored
This allows for setting keywords using the SSH interface. The syntax is `config <pkgbase> keywords <keyword1> <keyword2>...`. Implements FS#45627. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 16 Aug, 2015 1 commit
-
-
Lukas Fleischer authored
Implement a new command that can be used to restore deleted package bases without having to push a new commit. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 27 Jun, 2015 3 commits
-
-
Signed-off-by:
Johannes Löthberg <johannes@kyriasis.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Also add an utility function for formatting the ForceCommand, using shlex.quote to quote the value. Signed-off-by:
Johannes Löthberg <johannes@kyriasis.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
% formatting is deprecated, and .format should be used instead. Signed-off-by:
Johannes Löthberg <johannes@kyriasis.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 12 Jun, 2015 1 commit
-
-
This commit adds support for cloning repositories over SSH without a leading slash or with a trailing .git Fixes FS#45260 Signed-off-by:
Johannes Löthberg <johannes@kyriasis.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 11 Jun, 2015 3 commits
-
-
Lukas Fleischer authored
Allow for excluding certain IP addresses from the maintenance mode. This allows administrators to view the web page while the site is still under maintenance for the rest of the world. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Add support for a maintenance mode that disables both the website and the SSH interface and can be enabled easily using a configuration option. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
When creating the refs for the package base branch and the HEAD ref workaround, directly use commit IDs instead of symrefs. It looks like Git cannot pack symrefs, so this is expected to improve space efficiency. Also, since the refs are now only created (or updated) when new objects are actually received, this fixes a problem with dangling refs that were created when a user initialized a repository but did not push anything. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 08 Jun, 2015 1 commit
-
-
`repo` is not defined at the point it's used, so you would get errors like > Traceback (most recent call last): > File "/srv/http/vhosts/aur-dev.archlinux.org/public/git-interface/git-serve.py", line 138, in <module> > die('%s: invalid repository name: %s' % (action, repo)) > NameError: name 'repo' is not defined Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 02 Jun, 2015 3 commits
-
-
Lukas Fleischer authored
Remove the template-path and git-update-hook options which are no longer used. Update the git_clone_uri_anon default value. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Sometimes, we need to initialize the Git repository even if the package base already exists (e.g. when using a non-empty package database with empty repositories during the AUR 4.0.0 migration period). Make sure that the package branch and the namespaced HEAD ref is always created. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
* Move scripts/git-integration/ to git-interface/. * Move scripts/aurblup/aurblup.py to scripts/aurblup.py. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-