Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-07-08 10:34:28 +0200
committerErich Eckner <git@eckner.net>2023-07-08 10:34:28 +0200
commitfa64e92fc1f2cd7cc87b87f0d787c0ac4751d607 (patch)
treee6559457376fc6e6313f99c7e859f4e2269f1957 /bin
parent4d42e82deaeed372f42a59413b319f90140e8c91 (diff)
bin/harvest-commit-times: add force flag to ignore errors
Diffstat (limited to 'bin')
-rwxr-xr-xbin/harvest-commit-times9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/harvest-commit-times b/bin/harvest-commit-times
index 21855ff..24e1616 100755
--- a/bin/harvest-commit-times
+++ b/bin/harvest-commit-times
@@ -12,6 +12,7 @@ usage() {
>&2 echo ' sources from git and put them into the database'
>&2 echo ''
>&2 echo 'possible options:'
+ >&2 echo ' -f|--force: Do not abort on error.'
>&2 echo ' -h|--help: Show this help and exit.'
>&2 echo ' -w|--wait: If necessary, wait for lock blocking.'
[ -z "$1" ] && exit 1 || exit "$1"
@@ -26,9 +27,13 @@ eval set -- "$(
)"
block_flag='-n'
+force=false;
while true; do
case "$1" in
+ -f|--force)
+ force=true
+ ;;
-h|--help)
usage 0
;;
@@ -119,7 +124,9 @@ while true; do
>&2 printf '%s ' \
"${pkgbase}" "${git_revision}" "${mod_git_revision}" "${repository}" "${architecture}"
>&2 printf '\n'
- exit 2
+ if ! ${force}; then
+ exit 2
+ fi
fi
done > \
"${tmp_file}"