summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-13 06:22:06 +0200
committerErich Eckner <git@eckner.net>2018-09-13 06:22:06 +0200
commit7a05d7e44ac3df8c4ce8eb88cc23d7a410d289f2 (patch)
tree591c5a51c91d465380be059540a8b12a59616833 /bin/get-package-updates
parent316eccfbcf13c7d0ea284b9ea38ff4358dda418d (diff)
downloadbuilder-7a05d7e44ac3df8c4ce8eb88cc23d7a410d289f2.tar.xz
bin/get-package-updates, bin/seed-build-list: removal of old packages requires run of mysql_find_build_assignment_loops first
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 94f58cb..02d689b 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -599,8 +599,6 @@ echo 'Done - mark decisions as final.'
"${repository_ids__any_build_list}"
printf ' WHERE `binary_packages_in_repositories`.`repository`=%s;\n' \
"${repository_ids__any_to_be_decided}"
- # remove duplicate binary_packages from "build-list"
- mysql_query_remove_old_binary_packages_from_build_list
} | \
mysql_run_query
@@ -610,6 +608,10 @@ mysql_sort_versions
# not "to-be-decided", so we need to run this after moving the packages from "to-be-decided" to the "build-list".
mysql_find_build_assignment_loops
+# remove duplicate binary_packages from "build-list"
+mysql_query_remove_old_binary_packages_from_build_list | \
+ mysql_run_query
+
# Remove the lock file
rm -f "${build_list_lock_file}"