From 7bc912f4f413c2e140979b1f79d44e3129c7e0b1 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 12 Oct 2014 13:32:01 +0100 Subject: split out db building --- build-updated-packages.bash | 8 +------- db-build | 11 +++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100755 db-build diff --git a/build-updated-packages.bash b/build-updated-packages.bash index 4e03d3f..197c536 100755 --- a/build-updated-packages.bash +++ b/build-updated-packages.bash @@ -15,12 +15,6 @@ get_pkgver_sha() { printf "%s" "$(sed -r 's/.*\.r[0-9]*\.g?//' <<<$pkgver)") } -## -# Rebuild the repository using repose -build_repository() { - "$REPOSE_BINARY" "$DATABASE" --root "$ROOT" --pool "$POOL" -v -} - main() { for package in "${packages[@]}"; do old_version[$package]=$(get_pkgver_sha "$package") @@ -51,7 +45,7 @@ main() { wait fi - build_repository + $(dirname $0)/db-build } main "$@" diff --git a/db-build b/db-build new file mode 100755 index 0000000..5853a7b --- /dev/null +++ b/db-build @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +## +# Rebuild the repository using repose +main() { + source $(dirname $0)/config.bash + + "$REPOSE_BINARY" "$DATABASE" --root "$ROOT" --pool "$POOL" -v --xz --files +} + +main "$@" -- cgit v1.2.3-70-g09d2