[dbscripts,v2,0/6] Be less tightly coupled with SVN

Message ID 20180622160816.16076-1-lukeshu@lukeshu.com
Headers show


Luke Shumaker June 22, 2018, 4:08 p.m. UTC
From: Luke Shumaker <lukeshu@parabola.nu>

This patchset is intended to clean up dbscripts' interaction with SVN.
Besides (IMO) improved code clarity, this should make it easier for those
who wish to replace SVN with something else.

There are two major themes here:
 1. Avoid asking SVN for information; to the extent possible, get all
    information directly from the pacman repos.
 2. Isolate SVN-interfacing code in to functions; making it clear what
    interfaces the PKGBUILD tracking needs to provide.

This does not touch the test suite, which is still firmly SVN-dependent.

I've cc'd Florian Pritz because of his related work on migrating to git.

 - Add a test to verify that db-move works with single-arch packages;
   which was broken in v1 of this patchset
 - Don't break db-move with single-arch packages

Luke Shumaker (6):
  test: db-move: Verify that it works on single-arch packages
  db-move, db-remove: Don't parse PKGBUILD files
  db-move: Clarify the flow of the preflight check
  testing2x: Discover correct repos based on the DBEXT files, not SVN
  Centralize all SVN access into 'abs_*' functions in a new 'db-abs'
  db-move, db-abs: Simplify calling the abs_move_* functions

 cron-jobs/sourceballs   |   4 +-
 db-abs                  | 114 ++++++++++++++++++++++++++++++++++++++++
 db-functions            |  61 ++++++++++++++-------
 db-move                 |  92 ++++++++------------------------
 db-remove               |  18 ++-----
 test/cases/db-move.bats |  19 +++++++
 testing2x               |  40 ++++++--------
 7 files changed, 222 insertions(+), 126 deletions(-)
 create mode 100644 db-abs