From c95d83e7c6ac3f72536153ea1b1910cea3e414ad Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 15 May 2018 11:01:59 +0200 Subject: lib/mysql-functions: mysql_generate_package_metadata() expect current_repository_id instead of current_repository as parameter --- bin/get-package-updates | 2 +- bin/seed-build-list | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/get-package-updates b/bin/get-package-updates index b2515ca..8931a3a 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -400,7 +400,7 @@ trigger_rebuild_on_any_file_sed_expression=$( mysql_run_query # shellcheck disable=SC2154 printf '%s ' "${package}" "${git_revision}" "${new_repo_revisions__archlinux32}" "${repository}" >&2 - mysql_generate_package_metadata 'to-be-decided' "${package}" "${git_revision}" "${old_git_revision}" "${new_repo_revisions__archlinux32}" "${repository}" + mysql_generate_package_metadata "${repository_ids__any_to_be_decided}" "${package}" "${git_revision}" "${old_git_revision}" "${new_repo_revisions__archlinux32}" "${repository}" printf '\n' >&2 continue fi diff --git a/bin/seed-build-list b/bin/seed-build-list index 0e43f39..923e65a 100755 --- a/bin/seed-build-list +++ b/bin/seed-build-list @@ -371,10 +371,11 @@ printf 'CREATE TEMPORARY TABLE `pkgbases` (`pkgbase` VARCHAR(64), `repository` V sort -u | \ tr '\t' ' ' | \ if ${update}; then + mysql_retrieve_repository_ids while read -r pkgbase git_rev mod_git_rev repo; do printf '%s ' "${pkgbase}" "${git_rev}" "${mod_git_rev}" "${repo}" | \ sed 's/ $/\n/' - mysql_generate_package_metadata 'build-list' "${pkgbase}" "${git_rev}" '' "${mod_git_rev}" "${repo}" + mysql_generate_package_metadata "${repository_ids__any_build_list}" "${pkgbase}" "${git_rev}" '' "${mod_git_rev}" "${repo}" done rm -f "${build_list_lock_file}" -- cgit v1.2.3-70-g09d2