[dbscripts,v2,0/2] Replacing

Message ID 20190108234037.20059-1-eschwartz@archlinux.org
Headers show


Emil Velikov via arch-projects Jan. 8, 2019, 11:40 p.m. UTC
So I think the idea of replacing archivetools with a builtin archive
functionality has merit, especially if we can do it easily using nginx
rewrites. Hence I've rewritten this to put packages in longterm storage
in the archivetools "packages/" tree (which deprecates this aspect of
archivetools) using a helper script.

This also means no more mucking around with ftpdir-cleanup.

Updating to this in infrastructure.git will require installing a sudoers

%dev ALL = (archive) NOPASSWD: /packages/db-archive
%tu  ALL = (archive) NOPASSWD: /community/db-archive

Eli Schwartz (2):
  tests: make dummy archive copies of all packages in the test
  Add reproducible archive of packages.

 config                    |  2 ++
 db-archive                | 21 +++++++++++++++++++++
 db-functions              | 39 +++++++++++++++++++++++++++++++--------
 db-update                 |  4 ++++
 test/cases/db-update.bats |  6 ++++++
 test/lib/common.bash      | 10 ++++++++++
 6 files changed, 74 insertions(+), 8 deletions(-)
 create mode 100755 db-archive