diff options
author | Erich Eckner <git@eckner.net> | 2018-02-12 22:53:40 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-12 22:53:40 +0100 |
commit | fd342d4b92aa6881df2903804829a54100b83367 (patch) | |
tree | 7ada16ecdb00d5963b6c3011bf05e68aa922816e | |
parent | d1bb013a5072bf9c9ef4846331e7331e3667b943 (diff) | |
download | builder-fd342d4b92aa6881df2903804829a54100b83367.tar.xz |
bin/get-package-updates: actually put new packages into "to-be-decided" instead of "build-list"
-rwxr-xr-x | bin/get-package-updates | 6 |
1 files 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 |