summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParabola git <git@parabola.nu>2022-03-22 08:00:02 +0000
committerParabola git <git@parabola.nu>2022-03-22 08:00:02 +0000
commitbb8c70e610913f0faffc91155c25f92bc8bd594b (patch)
treed8d884c1994e1d04acf680aa5e528cbce3233417
parent6036ec84c537c5585408baad9f29b232eef4c687 (diff)
Update from cron
-rw-r--r--.config/git/hooks/update.d/trigger-autobuild.wip11
-rwxr-xr-xabslibre/blacklist.git/hooks/post-receive4
-rw-r--r--abslibre/blacklist.git/hooks/pre-receive4
3 files changed, 11 insertions, 8 deletions
diff --git a/.config/git/hooks/update.d/trigger-autobuild.wip b/.config/git/hooks/update.d/trigger-autobuild.wip
index f7fa3ea..15c7c5a 100644
--- a/.config/git/hooks/update.d/trigger-autobuild.wip
+++ b/.config/git/hooks/update.d/trigger-autobuild.wip
@@ -1,7 +1,10 @@
#!/usr/bin/env bash
set -e
-# WIP - trigger autobuilder to rebuild a package
+# trigger autobuilder to rebuild a package
+# NOTE: this is merely a convenience, to save bumping the pkgrel manually
+# it does not need to, and may never be implemented
+# TODO: WIP - currently disabled (ie: hook file is not executable)
#readonly REBUILD_PKGS=(
# libre/lxappearance-obconf-gtk3
@@ -23,9 +26,9 @@ if [[ "${commit_msg}" =~ "${autobuild_rx}" ]]
then repo_pkg="${BASH_REMATCH[1]}"
if git ls-tree --name-only -r master | grep "^${repo_pkg}/PKGBUILD$" # &> /dev/null
then echo '==> Rebuilding ${pkg} ...'
- if ~autobuilder/.local/bin/autobuild ${repo_pkg}
- then exit 42
- else echo "${commit_msg} - autobuild failed" > ${commit_msg_file}
+ if ! ~autobuilder/.local/bin/autobuild ${repo_pkg}
+ then echo "${commit_msg} - autobuild failed" > ${commit_msg_file}
+ else exit 42
fi
fi
fi
diff --git a/abslibre/blacklist.git/hooks/post-receive b/abslibre/blacklist.git/hooks/post-receive
index c2dea68..6d61d23 100755
--- a/abslibre/blacklist.git/hooks/post-receive
+++ b/abslibre/blacklist.git/hooks/post-receive
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
-~autobuilder/.local/bin/autobuild libre/your-freedom blacklist.txt
-~autobuilder/.local/bin/autobuild nonprism/your-privacy your-privacy-blacklist.txt
+~autobuilder/.local/bin/autobuild libre/your-freedom blacklist.txt
+~autobuilder/.local/bin/autobuild nonprism/your-privacy your-privacy-blacklist.txt
~autobuilder/.local/bin/autobuild libre/your-freedom_emu your-freedom_emu-blacklist.txt
diff --git a/abslibre/blacklist.git/hooks/pre-receive b/abslibre/blacklist.git/hooks/pre-receive
index f471242..9329d6c 100644
--- a/abslibre/blacklist.git/hooks/pre-receive
+++ b/abslibre/blacklist.git/hooks/pre-receive
@@ -1,7 +1,7 @@
#!/bin/bash
-# this script validates the blacklist files, rehecting the push otherwise
-# TODO: WIP - currently disabled (hook file is not executable)
+# this script validates the blacklist files, rejecting the push otherwise
+# TODO: WIP - currently disabled (ie: hook file is not executable)
# refs data via STDIN - one line per target ref (where ref_data is: prev_sha curr_sha ref_file)
# e.g.