index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-09-19 07:00:45 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-19 07:01:08 +0200 |
commit | 14b8dce118345b519a8be78fabb073fe93b0ab25 (patch) | |
tree | e86d56afd87b30f50affc4a3967f9396a9bbaf0e /lib | |
parent | d5e3e6b994deaf64eb8e4ffb9c5b3260aa9b5e93 (diff) |
-rwxr-xr-x | lib/mysql-functions | 8 |
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/,$/;/ + ' } ) { |