From fd342d4b92aa6881df2903804829a54100b83367 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 12 Feb 2018 22:53:40 +0100 Subject: bin/get-package-updates: actually put new packages into "to-be-decided" instead of "build-list" --- bin/get-package-updates | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/get-package-updates b/bin/get-package-updates index 07e88a2..533f14f 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -106,7 +106,7 @@ delete_package() { sed -i "/^$(str_to_regex "${1}") /d" "${work_dir}/build-list.new" # shellcheck disable=SC2016 { - # packages from the build-list go straight to the deletion-list + # packages from the build-list/to-be-decided go straight to the deletion-list printf 'UPDATE `binary_packages`' printf ' JOIN `%s` ON `%s`.`id`=`binary_packages`.`%s`' \ 'repositories' 'repositories' 'repository' \ @@ -114,7 +114,7 @@ delete_package() { printf ' JOIN `%s` ON `%s`.`id`=`%s`.`%s`' \ 'package_sources' 'package_sources' 'build_assignments' 'package_source' printf ' SET `binary_packages`.`repository`=(SELECT `repositories`.`id` FROM `repositories` WHERE `repositories`.`name`="deletion-list")' - printf ' WHERE `repositories`.`name`="build-list"' + printf ' WHERE `repositories`.`name` in ("build-list","to-be-decided")' printf ' AND `package_sources`.`pkgbase`=from_base64("%s");\n' \ "$(printf '%s' "$1" | base64 -w0)" # other packages are marked as `is_to_be_deleted` @@ -350,7 +350,7 @@ done | \ )" } | \ ${mysql_command} - mysql_generate_package_metadata 'build-list' "${package}" "${git_revision}" "${new_repo_revisions__archlinux32}" "${repository}" + mysql_generate_package_metadata 'to-be-decided' "${package}" "${git_revision}" "${new_repo_revisions__archlinux32}" "${repository}" generate_package_metadata "${package}" "${git_revision}" "${new_repo_revisions__archlinux32}" "${repository}" continue fi -- cgit v1.2.3-70-g09d2