From a46edda12d0dad4bc63e0e20bf1626a421fd77ef Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 27 Feb 2020 08:55:36 +0100 Subject: bin/why-dont-you: unstage/stabilize: name package by arch/pkgname instead of search-string --- bin/why-dont-you | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/why-dont-you b/bin/why-dont-you index 7b28cac..4f053ab 100755 --- a/bin/why-dont-you +++ b/bin/why-dont-you @@ -216,10 +216,11 @@ case "${action}" in > "${tmp_dir}/error" # shellcheck disable=SC2016 { - printf 'SELECT' - printf ' `binary_packages_in_repositories`.`id`,' - printf ' IF(%s,1,0),' "${test_filter}" - printf ' IF(`binary_packages`.`has_issues`,1,0)' + printf 'SELECT ' + printf '`binary_packages_in_repositories`.`id`,' + printf 'CONCAT(`architectures`.`name`,"/",`binary_packages`.`pkgname`),' + printf 'IF(%s,1,0),' "${test_filter}" + 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 @@ -243,16 +244,16 @@ case "${action}" in printf ');\n' } \ | mysql_run_query 'unimportant' \ - | while read -r bpir tested issues; do + | while read -r bpir label tested issues; do rm -f "${tmp_dir}/error" if [ "${tested}" = '0' ]; then printf '"%s" is not tested.\n' \ - "${pkgname}" + "${label}" continue fi if [ "${issues}" = '1' ]; then printf 'There are unresolved bugs reported against "%s".\n' \ - "${pkgname}" + "${label}" continue fi printf '%s\n' "${bpir}" \ -- cgit v1.2.3-70-g09d2