summaryrefslogtreecommitdiff
path: root/bin/nit-picker
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-13 11:07:14 +0100
committerErich Eckner <git@eckner.net>2020-01-13 11:07:14 +0100
commitcde3b3a8b64069210fdc5f74ba8facd2b8d56a3c (patch)
tree83956e2d8688e4646d623c59eb1ed03144657e79 /bin/nit-picker
parentbd836fa09286ddea85c14ce42fc4d5a630e82630 (diff)
downloadbuilder-cde3b3a8b64069210fdc5f74ba8facd2b8d56a3c.tar.xz
bin/nit-picker: recheck upstream-unavailable packages in our database - maybe, they were corrected in the meantime
Diffstat (limited to 'bin/nit-picker')
-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