diff options
author | Erich Eckner <git@eckner.net> | 2018-05-25 13:40:36 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-25 13:40:36 +0200 |
commit | 8aeca7194277ab52126bb3358635743be2ed7e2d (patch) | |
tree | 9ddf06fcf276eeb6f563def98985826aaeb4ff14 /lib/common-functions | |
parent | 64277df1805bb165184267cab3668166da780b1e (diff) | |
download | builder-8aeca7194277ab52126bb3358635743be2ed7e2d.tar.xz |
lib/mysql-functions: make mysql_join_binary_packages_repositories and mysql_join_repositories_binary_packages obsolete
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-x | lib/common-functions | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/common-functions b/lib/common-functions index bf4306a..50dc6f1 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -126,6 +126,8 @@ ls_master_mirror() { remove_old_package_versions() { +# TODO: needs to remove binary_packages_in_repositories, too + ( # the new shell is intentional tmp_dir=$(mktemp -d 'tmp.common-functions.remove_old_package_versions.XXXXXXXXXX' --tmpdir) trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT @@ -152,12 +154,14 @@ remove_old_package_versions() { mysql_package_name_query 'd_bp' 'd_bpa' printf ')' printf ' FROM `binary_packages` AS `d_bp`' - mysql_join_binary_packages_repositories 'd_bp' 'd_r' + mysql_join_binary_packages_binary_packages_in_repositories 'd_bp' 'd_bpir' + mysql_join_binary_packages_in_repositories_repositories 'd_bpir' 'd_r' printf ' AND `d_r`.`is_on_master_mirror`' mysql_join_repositories_architectures 'd_r' 'd_ra' mysql_join_binary_packages_architectures 'd_bp' 'd_bpa' printf ' JOIN `binary_packages` AS `o_bp` ON `d_bp`.`pkgname`=`o_bp`.`pkgname`' - mysql_join_binary_packages_repositories 'o_bp' 'o_r' + mysql_join_binary_packages_binary_packages_in_repositories 'o_bp' 'o_bpir' + mysql_join_binary_packages_in_repositories_repositories 'o_bpir' 'o_r' printf ' AND `o_r`.`is_on_master_mirror`' printf ' AND `o_r`.`architecture`=`d_r`.`architecture`' printf ' JOIN `repository_stability_relations`' |