diff options
author | Erich Eckner <git@eckner.net> | 2018-11-22 09:45:13 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-22 09:45:13 +0100 |
commit | 6e2480c673277a6a304e2ad64866dc11c1fb3eab (patch) | |
tree | 058ff0911951df651f1a283ed75014997b8fe663 /lib/mysql-functions | |
parent | c559b4290e4e3ab106cf80b14ce1ff011b51478d (diff) | |
download | builder-6e2480c673277a6a304e2ad64866dc11c1fb3eab.tar.xz |
lib/mysql-functions: mysql_retrieve_static_information(): extract current git head revisions, too
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-x | lib/mysql-functions | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions index 60ab177..2316079 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -1220,7 +1220,7 @@ mysql_join_dependencies_install_target_providers_with_versions() { # retrieve some static information from the database: # - ids of architectures -> $architecture_ids__$arch # - ids of package repositories -> $repository_ids__$arch_$repo -# - names and paths of git_repositories +# - names, paths and heads of git_repositories # - ids of repository_stabilities mysql_retrieve_static_information() { eval "$( @@ -1247,7 +1247,10 @@ mysql_retrieve_static_information() { printf 'SELECT CONCAT(' printf '"repo_paths__",' printf '`git_repositories`.`name`,"=",' - printf '"\\"",`git_repositories`.`directory`,"\\"")' + printf '"\\"",`git_repositories`.`directory`,"\\";' + printf 'repo_heads__",' + printf '`git_repositories`.`name`,"=",' + printf '"\\"",`git_repositories`.`head`,"\\"")' printf ' FROM `git_repositories`;\n' printf 'SELECT CONCAT(' printf '"repository_stability_ids__",' |