aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 "$@"