summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/delete-packages4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/delete-packages b/bin/delete-packages
index 7e843c5..258e441 100755
--- a/bin/delete-packages
+++ b/bin/delete-packages
@@ -110,7 +110,11 @@ trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
printf ' WHERE `binary_packages`.`is_to_be_deleted`'
printf ' AND NOT EXISTS ('
printf 'SELECT * FROM `install_target_providers`'
+ mysql_join_install_target_providers_binary_packages '' 'prov_bp'
+ mysql_join_binary_packages_repositories 'prov_bp' 'prov_r'
+ mysql_join_repositories_repository_stabilities 'prov_r'
printf ' WHERE `install_target_providers`.`install_target`=`dependencies`.`depending_on`'
+ printf ' AND `repository_stabilities`.`name` NOT IN ("forbidden","virtual")'
printf ');\n'
printf ' SELECT DISTINCT "repo",`repositories`.`name`'