From 910b33046a51a3fe099a3613fd67625e1779eb52 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 26 Feb 2020 11:58:04 +0100 Subject: bin/why-dont-you: match repositories.architecture, too --- bin/why-dont-you | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/why-dont-you b/bin/why-dont-you index 0ad6e7e..63b96e9 100755 --- a/bin/why-dont-you +++ b/bin/why-dont-you @@ -225,14 +225,25 @@ case "${action}" in printf ' IF(`binary_packages`.`has_issues`,1,0)' printf ' FROM `binary_packages_in_repositories`' mysql_join_binary_packages_in_repositories_repositories + mysql_join_repositories_architectures mysql_join_binary_packages_in_repositories_binary_packages printf ' WHERE `repositories`.`stability`=%s' \ "${from_stability}" - printf ' AND `binary_packages`.`pkgname`=from_base64("%s")' \ - "$( - printf '%s' "${pkgname}" | \ - base64 -w0 - )" + printf ' AND (' + printf '`binary_packages`.`pkgname`=from_base64("%s")' \ + "$( + printf '%s' "${pkgname}" | \ + base64 -w0 + )" + printf 'OR CONCAT(' + printf '`architectures`.`name`,"/",' + printf '`binary_packages`.`pkgname`' + printf ')=from_base64("%s")' \ + "$( + printf '%s' "${pkgname}" | \ + base64 -w0 + )" + printf ');\n' } | \ mysql_run_query 'unimportant' | \ tr '\t' ' ' -- cgit v1.2.3-70-g09d2