Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/why-dont-you9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/why-dont-you b/bin/why-dont-you
index 4f053ab..5e257d1 100755
--- a/bin/why-dont-you
+++ b/bin/why-dont-you
@@ -375,7 +375,6 @@ case "${action}" in
printf ')'
printf '),'
printf '" which must be replaced simulatanously"'
-# TODO: ignore those, that *are* requested to be moved simulatnously!
printf ') FROM ('
printf 'SELECT DISTINCT '
printf 'CONCAT(`architectures`.`name`,"/",`d_bp`.`pkgname`) AS `dependent`,'
@@ -404,6 +403,14 @@ case "${action}" in
printf ' JOIN `repository_stability_relations`'
printf ' ON `repository_stability_relations`.`more_stable`=`d_r`.`stability`'
printf ' AND `repository_stability_relations`.`less_stable`=`repositories`.`stability`'
+ printf ' LEFT JOIN ('
+ printf '`bpirs_2`'
+ printf ' JOIN `binary_packages_in_repositories` AS `m_bpir`'
+ printf ' ON `bpirs_2`.`id`=`m_bpir`.`id`'
+ mysql_join_binary_packages_in_repositories_binary_packages 'm_bpir' 'm_bp'
+ mysql_join_binary_packages_in_repositories_repositories 'm_bpir' 'm_r'
+ printf ') ON `m_bp`.`pkgname`=`d_bp`.`pkgname`'
+ printf ' AND `m_r`.`architecture`=`d_r`.`architecture`'
printf ') AS `sub_q`'
printf ' GROUP BY `sub_q`.`id`;\n'
} \