From 3cf52775e57ebf8bfcd8855381e52c812d8f4bf8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 27 Feb 2020 09:01:17 +0100 Subject: bin/why-dont-you: ignore replaced dependencies of packages, that are requested to be moved simulatnously --- bin/why-dont-you | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin') 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' } \ -- cgit v1.2.3