index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-10-17 08:35:40 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-17 08:35:40 +0200 |
commit | 6195669eea3ac8b93858d8e5197f7be0f48321db (patch) | |
tree | eb1348fab06b714711c126fd61896397c096c77c /bin | |
parent | ec4cbf10fdc3f2d36158e01acccd7c0572c00116 (diff) |
-rwxr-xr-x | bin/nit-picker | 12 |
diff --git a/bin/nit-picker b/bin/nit-picker index 581fa6f..7a2f785 100755 --- a/bin/nit-picker +++ b/bin/nit-picker @@ -17,16 +17,16 @@ if [ $# -ge 1 ] && [ "x$1" = 'x-n' ]; then >&2 echo 'not joining irc' irc=false - remove_dependencies=false + repair_dependencies=false shift elif [ $# -ge 1 ] && [ "x$1" = 'x-r' ]; then >&2 echo 'repair all wrong dependencies (remove superfluid, add missing)' irc=false - remove_dependencies=true + repair_dependencies=true shift else irc=true - remove_dependencies=false + repair_dependencies=false # shellcheck disable=SC2016 if [ $# -ne 0 ]; then >&2 echo 'usage: nit-picker [-n|-r [$single_test]]' @@ -102,7 +102,7 @@ while pgrep -x ii >/dev/null \ if [ $# -eq 0 ]; then # shellcheck disable=SC2016 { - if ! "${remove_dependencies}"; then + if ! "${repair_dependencies}"; then printf 'SELECT DISTINCT' printf ' "commit",' printf '`git_repositories`.`name`,' @@ -261,7 +261,7 @@ while pgrep -x ii >/dev/null \ | sort -u \ > "${tmp_dir}/db-deps" if ! diff -q "${tmp_dir}/db-deps" "${tmp_dir}/pkg-deps"; then - if "${remove_dependencies}"; then + if "${repair_dependencies}"; then cat "${tmp_dir}/db-deps" "${tmp_dir}/pkg-deps" "${tmp_dir}/pkg-deps" \ | sort \ | uniq -u \ @@ -436,7 +436,7 @@ while pgrep -x ii >/dev/null \ ;; esac done - if [ $# -ge 1 ] || "${remove_dependencies}"; then + if [ $# -ge 1 ] || "${repair_dependencies}"; then break fi sleep 120 |