Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-14 15:35:10 +0100
committerErich Eckner <git@eckner.net>2018-02-14 15:35:10 +0100
commit777b3ed99dfa55d15d0b3012f4cf2d91d5df7184 (patch)
tree67da72dad5bb4fc90a6221ad6ad924a7bc551ef8
parentb7b8706cf9221a880f79262d98d507f6e64c3d07 (diff)
bin/return-assignment: use mysql_package_name_query()
-rwxr-xr-xbin/return-assignment7
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`'