aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-12 13:32:01 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-12 13:32:01 +0100
commit7bc912f4f413c2e140979b1f79d44e3129c7e0b1 (patch)
tree6601af919b91a3a956baab0d3eef2722832e98f1
parent437479cb91fab3f3d457776b2e6fb2e71da3ef46 (diff)
downloadvcs-rebuild-7bc912f4f413c2e140979b1f79d44e3129c7e0b1.tar.xz
split out db building
-rwxr-xr-xbuild-updated-packages.bash8
-rwxr-xr-xdb-build11
2 files changed, 12 insertions, 7 deletions
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 "$@"