From 14b8dce118345b519a8be78fabb073fe93b0ab25 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 19 Sep 2018 07:00:45 +0200 Subject: lib/mysql-functions: mysql_find_build_assignment_loops(): insert looped packages, 20 at a time --- lib/mysql-functions | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/mysql-functions b/lib/mysql-functions index aba6ce6..c605c8b 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -783,9 +783,13 @@ mysql_find_build_assignment_loops() { >&2 printf 'ERROR: non-numeric id "%s"\n' "${id}" continue fi - printf '(%s,%s),' "${loop}" "${id}" + printf '(%s,%s),\n' "${loop}" "${id}" done | \ - sed 's/,$//' + sed ' + 1~20 i INSERT INTO `build_dependency_loops` (`loop`,`build_assignment`) VALUES '' + 0~20 s/,$/;/ + $ s/,$/;/ + ' } ) { -- cgit v1.2.3-70-g09d2