summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-03 15:30:08 +0200
committerErich Eckner <git@eckner.net>2018-09-03 15:30:08 +0200
commita06fade4103341c358234bd21dcee9c15ee1d6c4 (patch)
tree0d2cbcce8ce901a29eb8236b2d0ebc7f9f4167e2 /bin
parentdb5448138b313407d8062c04ed6df458ff64c66f (diff)
downloadbuilder-a06fade4103341c358234bd21dcee9c15ee1d6c4.tar.xz
bin/seed-build-list, bin/get-package-updates: sort versions if necessary
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-package-updates2
-rwxr-xr-xbin/seed-build-list2
2 files changed, 4 insertions, 0 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index a32dfa2..fe9fee7 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -602,6 +602,8 @@ echo 'Done - mark decisions as final.'
} | \
mysql_run_query
+mysql_sort_versions
+
# update loop list in database (beware, the packages are expected to be in "build-list",
# 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
diff --git a/bin/seed-build-list b/bin/seed-build-list
index 5f035ce..0e8c425 100755
--- a/bin/seed-build-list
+++ b/bin/seed-build-list
@@ -591,6 +591,8 @@ if ${update}; then
} | \
mysql_run_query
+ mysql_sort_versions
+
rm -f "${build_list_lock_file}"
else
cat "${tmp_dir}/update-list"