diff options
author | Erich Eckner <git@eckner.net> | 2019-09-12 13:58:08 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-12 13:58:08 +0200 |
commit | ab868b5cd39b6d3e600ab7d626c4e42ae2361cf9 (patch) | |
tree | 05d877128e7b0a484de7ebba74550bd5360a994e /bin/delete-packages | |
parent | f8a5bdb0f6713e5b011e3bcf610ff8bd3a15cd62 (diff) | |
download | builder-ab868b5cd39b6d3e600ab7d626c4e42ae2361cf9.tar.xz |
bin/delete-packages: remove binary package file if no _real_ package requires it anymore
Diffstat (limited to 'bin/delete-packages')
-rwxr-xr-x | bin/delete-packages | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/delete-packages b/bin/delete-packages index 3a615aa..9b5c7cd 100755 --- a/bin/delete-packages +++ b/bin/delete-packages @@ -239,7 +239,9 @@ export TMPDIR="${tmp_dir}" printf ' JOIN `binary_packages`' printf ' ON `binary_packages`.`id`=`bp_to_delete`.`id`' mysql_join_binary_packages_binary_packages_in_repositories - printf ' WHERE NOT EXISTS (' + mysql_join_binary_packages_in_repositories_repositories + printf ' WHERE `repositories`.`is_on_master_mirror`' + printf ' AND NOT EXISTS (' printf 'SELECT 1' printf ' FROM `bpir_to_delete`' printf ' WHERE `bpir_to_delete`.`id`=`binary_packages_in_repositories`.`id`' |