Hosting platform for the Arch User Repository (AUR), a collection of packaging scripts created by the Arch Linux community
Find a file
Eli Schwartz 97c5bcec13 config: allow reading both the defaults file and the modified config
In the process, rename config.proto to config.defaults (because that is
what it is now).

Also use dict.get('key', default_value) when querying os.environ, rather
than an if block, as it is more pythonic/readable/concise, and reduces
the number of dict lookups.

This change allows aurweb configuration to be done via either:
- copying config.defaults to config and modifying values
- creating a new config only containing modified values, next to a
  config.defaults containing unmodified values

The motivation for this change is to enable ansible configuration in our
flagship deployment by storing only changed values, and deferring to
config.defaults otherwise.

A side benefit is, it is easier to see what has changed by inspecting
only the site configuration file.

If a config.defaults file does not exist next to $AUR_CONFIG or in
$AUR_CONFIG_DEFAULTS, it is ignored and *all* values are expected to
live in the modified config file.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2018-04-22 09:26:10 +02:00
.tx Update Transifex URL 2013-08-26 18:37:24 +02:00
aurweb config: allow reading both the defaults file and the modified config 2018-04-22 09:26:10 +02:00
conf config: allow reading both the defaults file and the modified config 2018-04-22 09:26:10 +02:00
doc RPC: Allow to search packages by "*depends" fields 2018-02-24 14:57:31 +01:00
po Translation updates from Transifex 2017-12-02 21:30:44 +01:00
schema schema/Makefile: Replace MySQL with SQLite in comment 2018-03-14 17:19:53 +01:00
test Move AUR_OVERWRITE privilege check from git/auth to git/update 2018-01-21 18:09:10 +01:00
upgrading Add rate limit support to API 2018-02-24 14:57:31 +01:00
web config: allow reading both the defaults file and the modified config 2018-04-22 09:26:10 +02:00
.gitignore Move configuration to /etc/aurweb/config 2016-10-17 15:13:05 +02:00
.mailmap Update maintainer email address 2015-04-11 12:48:15 +02:00
.travis.yml Add basic Travis CI support 2017-08-25 07:04:15 +02:00
AUTHORS AUTHORS: Add date ranges to current maintainers 2015-09-29 20:51:03 +02:00
COPYING added GPL2 as our license 2007-09-09 01:31:34 +00:00
INSTALL config: allow reading both the defaults file and the modified config 2018-04-22 09:26:10 +02:00
README Reorganize Git interface scripts 2016-10-08 14:25:43 +02:00
setup.py Render comments when storing them in the database 2017-04-23 18:43:26 +02:00
TESTING config: allow reading both the defaults file and the modified config 2018-04-22 09:26:10 +02:00

aurweb
======

aurweb is a hosting platform for the Arch User Repository (AUR), a collection
of packaging scripts that are created and submitted by the Arch Linux
community. The scripts contained in the repository can be built using `makepkg`
and installed using the Arch Linux package manager `pacman`.

The aurweb project includes

* A web interface to search for packaging scripts and display package details.
* A SSH/Git interface to submit and update packages and package meta data.
* Community features such as comments, votes, package flagging and requests.
* Editing/deletion of packages and accounts by Trusted Users and Developers.
* Area for Trusted Users to post AUR-related proposals and vote on them.

Directory Layout
----------------

aurweb::
	aurweb Python modules.

conf::
	Configuration and configuration templates.

doc::
	Project documentation.

po::
	Translation files for strings in the aurweb interface.

schema::
	Schema for the SQL database. Script for dummy data generation.

scripts::
	Scripts for AUR maintenance.

test::
	Test suite and test cases.

upgrading::
	Instructions for upgrading setups from one release to another.

web::
	Web interface for the AUR.

Links
-----

* The repository is hosted at git://git.archlinux.org/aurweb.git -- see
  doc/CodingGuidelines for information on the patch submission process.

* Bugs can (and should) be submitted to the aurweb bug tracker:
  https://bugs.archlinux.org/index.php?project=2

* Questions, comments, and patches related to aurweb can be sent to the AUR
  development mailing list: aur-dev@archlinux.org -- mailing list archives:
  https://mailman.archlinux.org/mailman/listinfo/aur-dev