summaryrefslogtreecommitdiff
path: root/bin/why-dont-you
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-27 09:01:17 +0100
committerErich Eckner <git@eckner.net>2020-02-27 09:01:17 +0100
commit3cf52775e57ebf8bfcd8855381e52c812d8f4bf8 (patch)
tree782dd0bd0dee533e9228a4d69a91aebd69f79d89 /bin/why-dont-you
parenta46edda12d0dad4bc63e0e20bf1626a421fd77ef (diff)
downloadbuilder-3cf52775e57ebf8bfcd8855381e52c812d8f4bf8.tar.xz
bin/why-dont-you: ignore replaced dependencies of packages, that are requested to be moved simulatnously
Diffstat (limited to 'bin/why-dont-you')
-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'
} \