Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-27 08:55:36 +0100
committerErich Eckner <git@eckner.net>2020-02-27 08:55:36 +0100
commita46edda12d0dad4bc63e0e20bf1626a421fd77ef (patch)
treeea3c4306836aad682d9926e541c270a24405889e /bin
parent36c680fd5667d44b9c8fd168a483184490371a4f (diff)
bin/why-dont-you: unstage/stabilize: name package by arch/pkgname instead of search-string
Diffstat (limited to 'bin')
-rwxr-xr-xbin/why-dont-you15
1 files changed, 8 insertions, 7 deletions
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}" \