From 5968de28c8c3e8c0fc2ef41773f4eb1ac13c5dda Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 24 Sep 2018 10:10:27 +0200 Subject: lib/mysql-functions: let `commit_time` unset in mysql_add_package_source() -- whoops, I forgot most of the files --- bin/get-package-updates | 8 ++------ bin/seed-build-list | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/bin/get-package-updates b/bin/get-package-updates index 18149f9..3d1c1e3 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -380,15 +380,11 @@ trigger_rebuild_on_any_file_sed_expression=$( sort -k1,1 | \ sed 's|^[012] ||' } | \ - while read -r mode package git_revision old_git_revision repository; do - if [ "${old_git_revision}" = 'empty' ]; then - old_git_revision='' - fi + while read -r mode package git_revision _ repository; do if [ "${mode}" = 'D' ]; then # deleted PKGBUILD # shellcheck disable=SC2154 git_revision="${new_repo_revisions__archlinux32}" - old_git_revision='' found_package=false for repository in ${repo_names}; do eval 'repo_path="${repo_paths__'"${repository}"'}"' @@ -461,7 +457,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 "${repository_ids__any_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}" "${new_repo_revisions__archlinux32}" "${repository}" printf '\n' >&2 continue fi diff --git a/bin/seed-build-list b/bin/seed-build-list index 02da05c..0fc29f3 100755 --- a/bin/seed-build-list +++ b/bin/seed-build-list @@ -551,7 +551,7 @@ if ${update}; then 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 "${repository_ids__any_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 < \ "${tmp_dir}/update-list" -- cgit v1.2.3-70-g09d2