index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-02-20 15:05:59 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-20 15:05:59 +0100 |
commit | 36b0e9da28d78caf79f1fc5f8e39cb467aea3354 (patch) | |
tree | abd9d81a06b220d3d522dbd245205f4a6136c2cd /bin/seed-build-list | |
parent | e6a20e404220f11b5dcb89a26487e1bbca79230a (diff) |
-rwxr-xr-x | bin/seed-build-list | 22 |
diff --git a/bin/seed-build-list b/bin/seed-build-list index 2d840db..1d01545 100755 --- a/bin/seed-build-list +++ b/bin/seed-build-list @@ -725,12 +725,22 @@ if ${update}; then "${architecture_ids__any}" printf ');\n' -# TODO: We might now need to delete deletion-list packages which are now -# on the build-list, too. The questions are: -# Does that actually happen? Yes, it does! -# Why should that actually happen? Because we requested to reschedule them! -# Should we rather fix the other end (e.g. should these packages really -# be on the build-list)? Yes, if they were wrongly on the deletion-list! + # delete deletion-list part of packages which are on the + # deletion-list and the build-list + mysql_query_delete_packages \ + '1'"$( + printf ' JOIN `binary_packages` AS `j_bp`' + printf ' ON `j_bp`.`pkgname`=`binary_packages`.`pkgname`' + printf ' JOIN `architecture_compatibilities` AS `ac`' + printf ' ON `ac`.`fully_compatible`' + printf ' AND `ac`.`built_for`=`binary_packages`.`architecture`' + printf ' JOIN `architecture_compatibilities` AS `ac_j`' + printf ' ON `ac_j`.`fully_compatible`' + printf ' AND `ac_j`.`built_for`=`j_bp`.`architecture`' + printf ' AND `ac_j`.`runs_on`=`ac`.`runs_on`' + mysql_join_binary_packages_binary_packages_in_repositories 'j_bp' 'j_bpir' + )"' AND `j_bpir`.`id`='"${repository_ids__any_build_list}" \ + '`repositories`.`stability`='"${repository_stability_ids__forbidden}" } | \ mysql_run_query |