Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nit-picker26
1 files changed, 26 insertions, 0 deletions
diff --git a/bin/nit-picker b/bin/nit-picker
index 9cec5c8..ebb3973 100755
--- a/bin/nit-picker
+++ b/bin/nit-picker
@@ -626,6 +626,32 @@ while pgrep -x ii >/dev/null \
)" ]; then
continue
fi
+ # shellcheck disable=SC2016
+ if {
+ printf 'SELECT'
+ printf ' COUNT(1)'
+ printf ' FROM `binary_packages`'
+ mysql_join_binary_packages_binary_packages_in_repositories
+ printf ' AND `binary_packages`.`pkgname`=from_base64("%s")' \
+ "$(
+ printf '%s\n' "${parameters}" \
+ | base64 -w0
+ )"
+ printf ' AND NOT `binary_packages_in_repositories`.`is_to_be_deleted`'
+ mysql_join_binary_packages_in_repositories_repositories
+ printf ' AND ('
+ printf '`repositories`.`is_on_master_mirror`'
+ printf ' OR `repositories`.`id`=%s' \
+ "${repository_ids__any_build_list}"
+ printf ')'
+ mysql_join_binary_packages_build_assignments
+ mysql_join_build_assignments_package_sources
+ printf ' AND `package_sources`.`uses_upstream`;\n'
+ } \
+ | mysql_run_query \
+ | grep -qxF 0; then
+ continue
+ fi
printf 'Package %s is still in our repositories or on the build-list, but is not available upstream.\n' \
"${parameters}" \
| local_irc_say