From 569fbf690cee01f6ca1bb039b11a3d6e73de878f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 14 Mar 2018 15:09:58 +0100 Subject: bin/seed-build-list: insert into build-list _after_ inserting into database - in case something goes wrong --- bin/seed-build-list | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/seed-build-list b/bin/seed-build-list index 0ede139..2edf041 100755 --- a/bin/seed-build-list +++ b/bin/seed-build-list @@ -348,11 +348,11 @@ printf 'CREATE TEMPORARY TABLE `pkgbases` (`pkgbase` VARCHAR(64), `repository` V flock -s 8 while read -r pkgbase git_rev mod_git_rev repo; do - printf '%s %s %s %s\n' "${pkgbase}" "${git_rev}" "${mod_git_rev}" "${repo}" >> \ - "${work_dir}/build-list" printf '%s ' "${pkgbase}" "${git_rev}" "${mod_git_rev}" "${repo}" >&2 generate_package_metadata "${pkgbase}" "${git_rev}" "${mod_git_rev}" "${repo}" mysql_generate_package_metadata 'build-list' "${pkgbase}" "${git_rev}" "${mod_git_rev}" "${repo}" + printf '%s %s %s %s\n' "${pkgbase}" "${git_rev}" "${mod_git_rev}" "${repo}" >> \ + "${work_dir}/build-list" printf '\n' >&2 done -- cgit v1.2.3-70-g09d2