Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-22 20:29:15 +0100
committerErich Eckner <git@eckner.net>2018-01-22 20:29:15 +0100
commit170263108c8a6bf53fbfb22f8c7275bfff784edf (patch)
tree83e7c7ec9c20cabdae16b3932dced925633f0165 /bin/get-package-updates
parentb1bf479514f9b796169df90f6b8097b91600620a (diff)
bin/get-package-updates: bugfix mysql expression
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index cea1ec1..47c8824 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -98,10 +98,10 @@ delete_package() {
'build_assignments' 'build_assignments' 'build_assignment'
printf ' JOIN `%s` ON `%s`.`id`=`%s`.`%s`' \
'package_sources' 'package_sources' 'build_assignments' 'package_source'
+ printf ' SET `binary_packages`.`repository`=(SELECT `repositories`.`id` FROM `repositories` WHERE `repositories`.`name`="deletion-list")'
printf ' WHERE `repositories`.`name`="build-list"'
- printf ' AND `package_sources`.`pkgbase`=from_base64("%s")' \
+ printf ' AND `package_sources`.`pkgbase`=from_base64("%s");' \
"$(printf '%s' "$1" | base64 -w0)"
- printf ' SET `binary_packages`.`repository`=(SELECT `repositories`.`id` FROM `repositories` WHERE `repositories`.`name`="deletion-list");'
} | \
${mysql_command}
}