This project is mirrored from https://gitlab.archlinux.org/archlinux/aurweb.git. Pull mirroring updated .
  1. 22 Apr, 2018 1 commit
    • Eli Schwartz's avatar
      config: allow reading both the defaults file and the modified config · 97c5bcec
      Eli Schwartz authored and Lukas Fleischer's avatar Lukas Fleischer committed
      
      
      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's avatarEli Schwartz <eschwartz@archlinux.org>
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
      97c5bcec
  2. 08 Apr, 2018 1 commit
  3. 21 Mar, 2018 1 commit
  4. 20 Mar, 2018 1 commit
  5. 14 Mar, 2018 2 commits
  6. 13 Mar, 2018 1 commit
  7. 10 Mar, 2018 2 commits
  8. 24 Feb, 2018 4 commits
  9. 26 Jan, 2018 1 commit
  10. 21 Jan, 2018 1 commit
  11. 23 Dec, 2017 1 commit
  12. 03 Dec, 2017 3 commits
  13. 02 Dec, 2017 1 commit
  14. 28 Nov, 2017 2 commits
  15. 08 Nov, 2017 1 commit
  16. 07 Nov, 2017 1 commit
  17. 06 Nov, 2017 1 commit
  18. 05 Nov, 2017 4 commits
  19. 25 Aug, 2017 3 commits
  20. 10 Aug, 2017 1 commit
  21. 08 Aug, 2017 2 commits
  22. 01 Aug, 2017 3 commits
  23. 25 Jul, 2017 1 commit
  24. 22 Jul, 2017 1 commit