summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-12 13:48:56 +0100
committerErich Eckner <git@eckner.net>2018-03-12 13:48:56 +0100
commit080cfc23228f76825805643079f1a14e2d82fa2b (patch)
treed145eaef05276acbfd8e6488c3d645bebd38a4ca
parentdbf60cd6d389c2c3c2d42b28ccb7403dcdeebe4f (diff)
downloadbuilder-080cfc23228f76825805643079f1a14e2d82fa2b.tar.xz
bin/delete-packages: ignore deletion-list and other abstract packages as install_target_providers
-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`'