new builder stuff

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2021-02-27 02:47:54 +03:00
parent 6f7f61122c
commit d3fcb9b4ee
5 changed files with 5 additions and 143 deletions

View File

@@ -2,7 +2,7 @@
err() { printf '%s\n' "$*" >&2; }
build_remote() { sudo makepkg-overlay "$@"; }
build_remote() { sudo makepkg-docker "$@"; }
cleanup() { rm -f "$lockfile"; }
lock() {
@@ -44,11 +44,11 @@ while (($#>1)); do
mkdir -p "$wrkdir/${repo_path%$repo_name}"
git clone "$pkg_repo" "$repo_local"
build_remote "$pkg_repo" "$pkg_dest"
build_remote "$pkg_dest" "$pkg_repo"
else
git -C "$repo_local" remote update
if git -C "$repo_local" status --porcelain -bu | grep -q behind; then
build_remote "$pkg_repo" "$pkg_dest"
build_remote "$pkg_dest" "$pkg_repo"
git -C "$repo_local" pull
fi
fi