index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-02-26 11:58:04 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-26 11:58:04 +0100 |
commit | 910b33046a51a3fe099a3613fd67625e1779eb52 (patch) | |
tree | 07557b12d3997b935897b698031bde003dfc1c2c /bin | |
parent | e3c760e7417c661767cdee73e630697dfeed3c8b (diff) |
-rwxr-xr-x | bin/why-dont-you | 21 |
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' ' ' |