diff options
author | Erich Eckner <git@eckner.net> | 2018-02-14 15:35:10 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-14 15:35:10 +0100 |
commit | 777b3ed99dfa55d15d0b3012f4cf2d91d5df7184 (patch) | |
tree | 67da72dad5bb4fc90a6221ad6ad924a7bc551ef8 | |
parent | b7b8706cf9221a880f79262d98d507f6e64c3d07 (diff) | |
download | builder-777b3ed99dfa55d15d0b3012f4cf2d91d5df7184.tar.xz |
bin/return-assignment: use mysql_package_name_query()
-rwxr-xr-x | bin/return-assignment | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/return-assignment b/bin/return-assignment index e107124..7b2dec3 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -393,12 +393,7 @@ package_errors=$( { printf 'SELECT CONCAT(' printf '"expected: ",' - printf '`binary_packages`.`pkgname`,"-",' - printf 'if(`binary_packages`.`epoch`=0,"",CONCAT(`binary_packages`.`epoch`,":")),' - printf '`binary_packages`.`pkgver`,"-",' - printf '`binary_packages`.`pkgrel`,".",' - printf '`binary_packages`.`sub_pkgrel`,"-",' - printf '`architectures`.`name`,".pkg.tar.xz"' + mysql_package_name_query printf ')' printf ' FROM `binary_packages`' printf ' JOIN `architectures` ON `architectures`.`id`=`binary_packages`.`architecture`' |