From 777b3ed99dfa55d15d0b3012f4cf2d91d5df7184 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 14 Feb 2018 15:35:10 +0100 Subject: bin/return-assignment: use mysql_package_name_query() --- bin/return-assignment | 7 +------ 1 file changed, 1 insertion(+), 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`' -- cgit v1.2.3-70-g09d2